-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mergify: enable for any pull request #12274
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,6 @@ pull_request_rules: | |
# From needs: review to needs: work - reviewers request | ||
- name: "label needs: work when changes were requested" | ||
conditions: | ||
- base~=feature-mergify | ||
# Reviewers | ||
- "#changes-requested-reviews-by>0" | ||
actions: | ||
|
@@ -36,11 +35,11 @@ pull_request_rules: | |
- "needs: work" | ||
remove: | ||
- "needs: review" | ||
- "needs: CI" | ||
|
||
# From needs: review to needs: work - CI failure | ||
- name: "label needs: work when travis-ci failed" | ||
conditions: | ||
- base~=feature-mergify | ||
# Travis failing | ||
- status-failure~=continuous-integration/travis-ci/pr | ||
actions: | ||
|
@@ -49,11 +48,11 @@ pull_request_rules: | |
- "needs: work" | ||
remove: | ||
- "needs: review" | ||
- "needs: CI" | ||
|
||
# From needs: review to needs: work - CI failure | ||
- name: "label needs: work when Jenkins CI failed - pr head" | ||
conditions: | ||
- base~=feature-mergify | ||
# Jenkins CI failing | ||
- status-failure~=continuous-integration/jenkins/pr-head | ||
actions: | ||
|
@@ -62,11 +61,11 @@ pull_request_rules: | |
- "needs: work" | ||
remove: | ||
- "needs: review" | ||
- "needs: CI" | ||
|
||
# From needs: review to needs: work - CI failure | ||
- name: "label needs: work when Jenkins CI failed - any of the pipeline" | ||
conditions: | ||
- base~=feature-mergify | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, may need to also remove needs: ci if present |
||
# Jenkins CI failing - any of the pipeline | ||
- status-failure~=^jenkins-ci | ||
actions: | ||
|
@@ -75,11 +74,11 @@ pull_request_rules: | |
- "needs: work" | ||
remove: | ||
- "needs: review" | ||
- "needs: CI" | ||
|
||
# From needs: review or needs: work to needs: CI. One approval means we should be good to start CI | ||
- name: "label needs: CI when at least one reviewers approval" | ||
conditions: | ||
- base~=feature-mergify | ||
# Labels | ||
- "label!=needs: preceding PR" | ||
|
||
|
@@ -100,10 +99,18 @@ pull_request_rules: | |
- "needs: review" | ||
- "needs: work" | ||
|
||
# Remove reviews after the branch is updated. This yet does not allow | ||
# any other action like labels, etc. See mergify-engine/issues/360 | ||
- name: remove outdated reviews | ||
conditions: [] | ||
actions: | ||
dismiss_reviews: | ||
approved: True | ||
changes_requested: True | ||
|
||
# Conflict in the PR - needs: work and a comment to notify a user | ||
- name: "label needs: work when there is a conflict" | ||
conditions: | ||
- base~=feature-mergify | ||
- conflict | ||
actions: | ||
label: | ||
|
@@ -117,7 +124,6 @@ pull_request_rules: | |
|
||
- name: "add label feature branch for feature branch additions" | ||
conditions: | ||
- base~=feature-mergify | ||
- base~=^feature | ||
actions: | ||
label: | ||
|
@@ -127,7 +133,6 @@ pull_request_rules: | |
# Ready for integration. Not yet auto merge, will be enabled once carefuly tested | ||
- name: label "ready for merge" when ready | ||
conditions: | ||
- base~=feature-mergify | ||
# Labels | ||
- "label!=do not merge" | ||
- "label=needs: CI" | ||
|
@@ -152,7 +157,6 @@ pull_request_rules: | |
# Clean-up after merge | ||
- name: remove ready for merge when merged | ||
conditions: | ||
- base~=feature-mergify | ||
- merged | ||
- "label=ready for merge" | ||
actions: | ||
|
@@ -162,7 +166,6 @@ pull_request_rules: | |
|
||
- name: add "do not merge" label when WIP is in title | ||
conditions: | ||
- base~=feature-mergify | ||
- title~=^(\[wip\]( |:) |\[WIP\]( |:) |wip( |:) |WIP( |:)).* | ||
actions: | ||
label: | ||
|
@@ -172,7 +175,6 @@ pull_request_rules: | |
# Check if version label is applied | ||
- name: release version is a must for merged PRs | ||
conditions: | ||
- base~=feature-mergify | ||
- merged | ||
- -label~=^(release-version) | ||
actions: | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we also have a needs: ci label here that may need to be removed if travis was restarted during a CI cycle ?