diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2014-12-05 22:56:43 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-03-21 11:25:27 +0100 |
commit | 5b432e76710eb70cc41c59af1ea9a294202a49fc (patch) | |
tree | c9fa0c82f6b9a3066ef5271027489bb3a80b9d0a /lib | |
parent | 6cf189f0a92772b9174f913e7c74a4889d54e9a6 (diff) | |
download | gitlab-ce-5b432e76710eb70cc41c59af1ea9a294202a49fc.tar.gz |
Extend push_tag event to include tag message and last commit
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/push_data_builder.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/push_data_builder.rb b/lib/gitlab/push_data_builder.rb index 948cf58fd9a..f8da452e4c0 100644 --- a/lib/gitlab/push_data_builder.rb +++ b/lib/gitlab/push_data_builder.rb @@ -21,7 +21,7 @@ module Gitlab # total_commits_count: Fixnum # } # - def build(project, user, oldrev, newrev, ref, commits = []) + def build(project, user, oldrev, newrev, ref, commits = [], message = nil) # Total commits count commits_count = commits.size @@ -42,6 +42,7 @@ module Gitlab after: newrev, ref: ref, checkout_sha: checkout_sha(project.repository, newrev, ref), + message: message, user_id: user.id, user_name: user.name, user_email: user.email, |