summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2014-12-05 22:56:43 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2015-03-21 11:25:27 +0100
commit5b432e76710eb70cc41c59af1ea9a294202a49fc (patch)
treec9fa0c82f6b9a3066ef5271027489bb3a80b9d0a /lib
parent6cf189f0a92772b9174f913e7c74a4889d54e9a6 (diff)
downloadgitlab-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.rb3
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,