diff options
author | Francisco Javier López <fjlopez@gitlab.com> | 2018-07-30 19:55:28 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-07-30 19:55:28 +0300 |
commit | 9a81550feddd907f8796362d604f63ed66ad80a2 (patch) | |
tree | 90d9c1deae0ee2c57b05fbe76ed96d13cf54a1af /app/models/project.rb | |
parent | 5b6553a0810f65d79c648aca9dba254644a293fb (diff) |
Create GPG commit signature in bulk
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index b876270116e..da30d2fbb4f 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -548,6 +548,10 @@ class Project < ActiveRecord::Base repository.commit_by(oid: oid) end + def commits_by(oids:) + repository.commits_by(oids: oids) + end + # ref can't be HEAD, can only be branch/tag name or SHA def latest_successful_builds_for(ref = default_branch) latest_pipeline = pipelines.latest_successful_for(ref) |