summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-21 15:25:54 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-21 15:25:54 -0700
commitfad1c2e7c3fc6fb7ab39bd17db636f49c54bbe53 (patch)
treeb1c09442ab8486fa5fbb0804a5e01b30546e88ef /lib
parent63da396f59be2ef8af091f10979934f085139771 (diff)
parent5b432e76710eb70cc41c59af1ea9a294202a49fc (diff)
downloadgitlab-ce-fad1c2e7c3fc6fb7ab39bd17db636f49c54bbe53.tar.gz
Merge branch 'topic/push_tag_events_for_ci' of https://github.com/ayufan/gitlabhq into ayufan-topic/push_tag_events_for_ci
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,