summaryrefslogtreecommitdiff
path: root/lib/gitlab/hook_data/merge_request_builder.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-11-14 18:55:00 +0100
committerRémy Coutable <remy@rymai.me>2017-11-15 15:42:19 +0100
commit05c10c9bf77db2a9e37e61d1953ef0150289322d (patch)
treeaf7d820349678773d5b0835d652425e70dbffe80 /lib/gitlab/hook_data/merge_request_builder.rb
parenta4072db0198896242886d22c644ed91c1016aa8d (diff)
downloadgitlab-ce-05c10c9bf77db2a9e37e61d1953ef0150289322d.tar.gz
Add total_time_spent to the `changes` hash in issuable Webhook payloads40122-only-one-note-webhook-is-triggered-when-a-comment-with-time-spent-is-added
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/gitlab/hook_data/merge_request_builder.rb')
-rw-r--r--lib/gitlab/hook_data/merge_request_builder.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/hook_data/merge_request_builder.rb b/lib/gitlab/hook_data/merge_request_builder.rb
index 503452c8ff3..ae9b68eb648 100644
--- a/lib/gitlab/hook_data/merge_request_builder.rb
+++ b/lib/gitlab/hook_data/merge_request_builder.rb
@@ -33,6 +33,7 @@ module Gitlab
SAFE_HOOK_RELATIONS = %i[
assignee
labels
+ total_time_spent
].freeze
attr_accessor :merge_request