Method: Github::Client::Repos#edit

Defined in:
lib/github_api/client/repos.rb

#edit(*args) ⇒ Object

Edit a repository

Examples:

github = Github.new
github.repos.edit 'user-name', 'repo-name',
  name: 'hello-world',
  description: 'This is your first repo',
  homepage: "https://github.com",
  public: true, has_issues: true

Parameters:



330
331
332
333
334
335
336
337
# File 'lib/github_api/client/repos.rb', line 330

def edit(*args)
  arguments(args, required: [:user, :repo]) do
    permit VALID_REPO_OPTIONS
    assert_required %w[ name ]
  end

  patch_request("/repos/#{arguments.user}/#{arguments.repo}", arguments.params)
end