diff options
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index 13630bc..5720b26 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -105,10 +105,11 @@ class Commit < ActiveRecord::Base end end - def create_builds_for_tag + def create_builds_for_tag(tag_name = '') project.jobs.where(build_tags: true).active.map do |job| build = builds.new(commands: job.commands) build.job = job + build.ref = tag_name build.save build end |