class Github::GitData::References
def update(*args)
"force" => true
"sha" => "827efc6d56897b048c772eb4087f854f46256132",
github.git_data.references.update 'user-name', 'repo-name', 'heads/master',
github = Github.new
= Examples
* :force - Boolean indicating whether to force the update or to make sure the update is a fast-forward update. The default is false, so leaving this out or setting it to false will make sure you’re not overwriting work.
* :sha - String of the SHA1 value to set this reference to
= Inputs
Update a reference
def update(*args) arguments(args, :required => [:user, :repo, :ref]) do sift VALID_REF_PARAM_NAMES assert_required %w[ sha ] end params = arguments.params patch_request("/repos/#{user}/#{repo}/git/refs/#{ref}", params) end