Commit a3d7dea4 authored by Ravishankar's avatar Ravishankar

Remove the feature flag for MWPS notification

change log

Remove the settings doc

Review comments

Apply 1 suggestion(s) to 1 file(s)

Change milestone
parent 4e12f87c
...@@ -38,8 +38,6 @@ module AutoMerge ...@@ -38,8 +38,6 @@ module AutoMerge
private private
def notify(merge_request) def notify(merge_request)
return unless Feature.enabled?(:mwps_notification, project)
notification_service.async.merge_when_pipeline_succeeds(merge_request, current_user) if merge_request.saved_change_to_auto_merge_enabled? notification_service.async.merge_when_pipeline_succeeds(merge_request, current_user) if merge_request.saved_change_to_auto_merge_enabled?
end end
end end
......
---
title: Send notification when merge request is set to merge when pipeline succeeds
merge_request: 39297
author: Ravishankar Gnanaprakasam
type: added
...@@ -184,6 +184,7 @@ To minimize the number of notifications that do not require any action, from [Gi ...@@ -184,6 +184,7 @@ To minimize the number of notifications that do not require any action, from [Gi
| Close merge request | | | Close merge request | |
| Reopen merge request | | | Reopen merge request | |
| Merge merge request | | | Merge merge request | |
| Merge when pipeline succeeds ([Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/211961) in GitLab 13.4) | |
| Change milestone merge request | Subscribers, participants mentioned, and Custom notification level with this event selected | | Change milestone merge request | Subscribers, participants mentioned, and Custom notification level with this event selected |
| Remove milestone merge request | Subscribers, participants mentioned, and Custom notification level with this event selected | | Remove milestone merge request | Subscribers, participants mentioned, and Custom notification level with this event selected |
| New comment | The above, plus anyone mentioned by `@username` in the comment, with notification level "Mention" or higher | | New comment | The above, plus anyone mentioned by `@username` in the comment, with notification level "Mention" or higher |
......
...@@ -91,18 +91,6 @@ RSpec.describe AutoMerge::MergeWhenPipelineSucceedsService do ...@@ -91,18 +91,6 @@ RSpec.describe AutoMerge::MergeWhenPipelineSucceedsService do
end end
end end
context 'without feature enabled' do
it 'does not send notification' do
stub_feature_flags(mwps_notification: false)
allow(merge_request)
.to receive_messages(head_pipeline: pipeline, actual_head_pipeline: pipeline)
expect(MailScheduler::NotificationServiceWorker).not_to receive(:perform_async)
service.execute(merge_request)
end
end
context 'already approved' do context 'already approved' do
let(:service) { described_class.new(project, user, should_remove_source_branch: true) } let(:service) { described_class.new(project, user, should_remove_source_branch: true) }
let(:build) { create(:ci_build, ref: mr_merge_if_green_enabled.source_branch) } let(:build) { create(:ci_build, ref: mr_merge_if_green_enabled.source_branch) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment