Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
27e90be2
Commit
27e90be2
authored
Sep 01, 2020
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab master
parents
4a6e0a32
525ee153
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
21 deletions
+14
-21
app/services/auto_merge/merge_when_pipeline_succeeds_service.rb
...rvices/auto_merge/merge_when_pipeline_succeeds_service.rb
+0
-2
changelogs/unreleased/rmv-mwps-feature-flag.yml
changelogs/unreleased/rmv-mwps-feature-flag.yml
+5
-0
doc/administration/gitaly/praefect.md
doc/administration/gitaly/praefect.md
+6
-2
doc/user/permissions.md
doc/user/permissions.md
+2
-5
doc/user/profile/notifications.md
doc/user/profile/notifications.md
+1
-0
spec/services/auto_merge/merge_when_pipeline_succeeds_service_spec.rb
...s/auto_merge/merge_when_pipeline_succeeds_service_spec.rb
+0
-12
No files found.
app/services/auto_merge/merge_when_pipeline_succeeds_service.rb
View file @
27e90be2
...
...
@@ -38,8 +38,6 @@ module AutoMerge
private
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?
end
end
...
...
changelogs/unreleased/rmv-mwps-feature-flag.yml
0 → 100644
View file @
27e90be2
---
title
:
Send notification when merge request is set to merge when pipeline succeeds
merge_request
:
39297
author
:
Ravishankar Gnanaprakasam
type
:
added
doc/administration/gitaly/praefect.md
View file @
27e90be2
...
...
@@ -995,8 +995,12 @@ information, see the [strong consistency epic](https://gitlab.com/groups/gitlab-
To enable strong consistency:
-
In GitLab 13.3 and later, reference transactions are enabled by default with
a primary-wins strategy. This strategy causes all transactions to succeed for
-
In GitLab 13.4 and later, the strong consistency voting strategy has been
improved. Instead of requiring all nodes to agree, only the primary and half
of the secondaries need to agree. To enable this strategy, disable the
`:gitaly_reference_transactions_primary_wins`
feature flag.
-
In GitLab 13.3, reference transactions are enabled by default with a
primary-wins strategy. This strategy causes all transactions to succeed for
the primary and thus does not ensure strong consistency. To enable strong
consistency, disable the
`:gitaly_reference_transactions_primary_wins`
feature flag.
...
...
doc/user/permissions.md
View file @
27e90be2
...
...
@@ -212,11 +212,8 @@ Find the current permissions on the Value Stream Analytics dashboard, as describ
### Issue Board permissions
Developers and users with higher permission level can use all
the functionality of the Issue Board, that is create/delete lists
and drag issues around. Read through the
[
documentation on Issue Boards permissions
](
project/issue_board.md#permissions
)
to learn more.
Find the current permissions for interacting with the Issue Board feature in the
[
Issue Boards permissions page
](
project/issue_board.md#permissions
)
.
### File Locking permissions **(PREMIUM)**
...
...
doc/user/profile/notifications.md
View file @
27e90be2
...
...
@@ -184,6 +184,7 @@ To minimize the number of notifications that do not require any action, from [Gi
| Close merge request | |
| Reopen 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 |
| 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 |
...
...
spec/services/auto_merge/merge_when_pipeline_succeeds_service_spec.rb
View file @
27e90be2
...
...
@@ -91,18 +91,6 @@ RSpec.describe AutoMerge::MergeWhenPipelineSucceedsService do
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
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
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment