diff options
author | Jan Provaznik <jprovaznik@gitlab.com> | 2018-05-01 12:39:44 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-05-01 12:39:44 +0000 |
commit | 7a76caa5a8d2c6be9aa4b698a8919e223df973d3 (patch) | |
tree | 0f9240de123b0570be2a5aec9566d0dcf7a65627 /lib/api/helpers.rb | |
parent | 3fcb9c115d776feba3f71fb58359a3935edfda9b (diff) | |
download | gitlab-ce-7a76caa5a8d2c6be9aa4b698a8919e223df973d3.tar.gz |
Merge request and commit discussions API
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index b8657cd7ee4..2ed331d4fd2 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -171,6 +171,10 @@ module API MergeRequestsFinder.new(current_user, project_id: user_project.id).find_by!(iid: iid) end + def find_project_commit(id) + user_project.commit_by(oid: id) + end + def find_project_snippet(id) finder_params = { project: user_project } SnippetsFinder.new(current_user, finder_params).find(id) |