Method: Gitlab::Client::Commits#commit_refs
- Defined in:
- lib/gitlab/client/commits.rb
#commit_refs(project, sha, options = {}) ⇒ Gitlab::ObjectifiedHash
Get all references (from branches or tags) a commit is pushed to.
50 51 52 |
# File 'lib/gitlab/client/commits.rb', line 50 def commit_refs(project, sha, = {}) get("/projects/#{url_encode project}/repository/commits/#{sha}/refs", query: ) end |