def edit(user_name, repo_name, params={ })
      _update_user_repo_params(user_name, repo_name)
      _validate_user_repo_params(user, repo) unless user? && repo?

      normalize! params
      filter! VALID_REPO_OPTIONS, params

      put_request("/1.0/repositories/#{user}/#{repo.downcase}/", DEFAULT_REPO_OPTIONS.merge(params))
    end
def edit(user_name, repo_name, params={ })
      _update_user_repo_params(user_name, repo_name)
      _validate_user_repo_params(user, repo) unless user? && repo?

      normalize! params
      filter! VALID_REPO_OPTIONS, params

      put_request("/1.0/repositories/#{user}/#{repo.downcase}/", DEFAULT_REPO_OPTIONS.merge(params))
    end
Edit a repository

 = Parameters
 * <tt>:name</tt> Required string
 * <tt>:description</tt>   Optional string
 * <tt>:website</tt>       Optional string
 * <tt>:private</tt> - Optional boolean - <tt>false</tt> to create public reps, <tt>false</tt> to create a private one
 * <tt>:has_issues</tt>    Optional boolean - <tt>true</tt> to enable issues for this repository, <tt>false</tt> to disable them
 * <tt>:has_wiki</tt>      Optional boolean - <tt>true</tt> to enable the wiki for this repository, <tt>false</tt> to disable it. Default is <tt>true</tt>
 * <tt>:has_downloads</tt> Optional boolean - <tt>true</tt> to enable downloads for this repository

 = Examples

  bitbucket = BitBucket.new
  bitbucket.repos.edit 'user-name', 'repo-name',
    :name => 'hello-world',
    :description => 'This is your first repo',
    :website => "https://bitbucket.com",
    :public => true, :has_issues => true