diff options
author | Sujay Patel <sujaypatel1996@gmail.com> | 2019-06-08 09:24:20 +0300 |
---|---|---|
committer | sujay <sujay.patel@caavo.com> | 2019-06-10 13:05:38 +0300 |
commit | ed8a00b9c41c25af3fcc45892a7d5144d75c6863 (patch) | |
tree | bcbb26cea1d92f0c20b6325831b14e4cd60e662f /lib/gitlab/data_builder | |
parent | 6aa0df5a0f9a71de3e64f8170ebdc1c041a238ff (diff) |
Adding labels to note event payload.
Diffstat (limited to 'lib/gitlab/data_builder')
-rw-r--r-- | lib/gitlab/data_builder/note.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/data_builder/note.rb b/lib/gitlab/data_builder/note.rb index 65601dcdf31..16e62622ed4 100644 --- a/lib/gitlab/data_builder/note.rb +++ b/lib/gitlab/data_builder/note.rb @@ -44,6 +44,7 @@ module Gitlab data[:commit] = build_data_for_commit(project, user, note) elsif note.for_issue? data[:issue] = note.noteable.hook_attrs + data[:issue][:labels] = note.noteable.labels(&:hook_attrs) elsif note.for_merge_request? data[:merge_request] = note.noteable.hook_attrs elsif note.for_snippet? |