diff options
author | Stan Hu <stanhu@gmail.com> | 2018-08-17 16:15:21 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-08-17 16:16:23 -0700 |
commit | 0d95b6bf61d43314869a25c0071d81de247a7c2c (patch) | |
tree | 4a3d0e879db0be44cc00b194b5c129fb3f282890 | |
parent | 74eec89ebe0b118f8aba6051f53d5dbe5e68c2d1 (diff) | |
download | gitlab-ce-0d95b6bf61d43314869a25c0071d81de247a7c2c.tar.gz |
Fix "Confidential comments" button not saving in project hookssh-fix-confidential-note-option
Closes #50440
-rw-r--r-- | app/models/concerns/triggerable_hooks.rb | 1 | ||||
-rw-r--r-- | changelogs/unreleased/sh-fix-confidential-note-option.yml | 5 | ||||
-rw-r--r-- | spec/controllers/projects/hooks_controller_spec.rb | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/app/models/concerns/triggerable_hooks.rb b/app/models/concerns/triggerable_hooks.rb index f55ab2fcaf3..223a61119e5 100644 --- a/app/models/concerns/triggerable_hooks.rb +++ b/app/models/concerns/triggerable_hooks.rb @@ -6,6 +6,7 @@ module TriggerableHooks push_hooks: :push_events, tag_push_hooks: :tag_push_events, issue_hooks: :issues_events, + confidential_note_hooks: :confidential_note_events, confidential_issue_hooks: :confidential_issues_events, note_hooks: :note_events, merge_request_hooks: :merge_requests_events, diff --git a/changelogs/unreleased/sh-fix-confidential-note-option.yml b/changelogs/unreleased/sh-fix-confidential-note-option.yml new file mode 100644 index 00000000000..14d70281760 --- /dev/null +++ b/changelogs/unreleased/sh-fix-confidential-note-option.yml @@ -0,0 +1,5 @@ +--- +title: Fix "Confidential comments" button not saving in project hooks +merge_request: 21289 +author: +type: fixed diff --git a/spec/controllers/projects/hooks_controller_spec.rb b/spec/controllers/projects/hooks_controller_spec.rb index 0f3033b0933..7d3a8c3d0d3 100644 --- a/spec/controllers/projects/hooks_controller_spec.rb +++ b/spec/controllers/projects/hooks_controller_spec.rb @@ -30,6 +30,7 @@ describe Projects::HooksController do tag_push_events: true, merge_requests_events: true, issues_events: true, + confidential_note_events: true, confidential_issues_events: true, note_events: true, job_events: true, |