Method: GitDataReferences#editReference
- Defined in:
- lib/github/gitdata/gitdata_references.rb
#editReference(repo, sha, force = FALSE, user = nil) ⇒ Object
33 34 35 36 37 38 39 40 41 |
# File 'lib/github/gitdata/gitdata_references.rb', line 33 def editReference(repo, sha, force=FALSE, user=nil) username = user == nil ? @github.username : user params = { :sha => sha, :force => force } data = params.to_json @github.patch('repos/%s/%s/git/refs' % [username, repo], data) end |