class Github::Repos
def edit(*args)
:public => true, :has_issues => true
:homepage => "https://github.com",
:description => 'This is your first repo',
:name => 'hello-world',
github.repos.edit 'user-name', 'repo-name',
github = Github.new
= Examples
* :default_branch Optional string - Update the default branch for this repository.
* :has_downloads Optional boolean - true to enable downloads for this repository
* :has_wiki Optional boolean - true to enable the wiki for this repository, false to disable it. Default is true
* :has_issues Optional boolean - true to enable issues for this repository, false to disable them
:private - Optional boolean - false to create public reps, false to create a private one
* :homepage Optional string
* :description Optional string
* :name Required string
= Parameters
Edit a repository
def edit(*args) arguments(args, :required => [:user, :repo]) do sift VALID_REPO_OPTIONS assert_required %w[ name ] end params = arguments.params patch_request("/repos/#{user}/#{repo}", params.merge_default(DEFAULT_REPO_OPTIONS)) end