-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(Mergify): configuration update (#311)
Signed-off-by: AraHaan <[email protected]>
- Loading branch information
Showing
1 changed file
with
128 additions
and
128 deletions.
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 |
---|---|---|
@@ -1,128 +1,128 @@ | ||
queue_rules: | ||
- name: default | ||
conditions: | ||
- -conflict # skip PRs with conflicts | ||
- -draft # filter-out GH draft PRs | ||
- -closed # filter-out closed GH PRs | ||
- base=main | ||
- label=automerge | ||
- check-success=build (windows-latest) | ||
- check-success=build (ubuntu-latest) | ||
- check-success=build (macos-latest) | ||
- check-success=Codacy Static Code Analysis | ||
- check-success=DCO | ||
- check-success=WIP | ||
|
||
pull_request_rules: | ||
# for check failures / WIP pending check. | ||
- name: Add enhancement label | ||
conditions: | ||
- check-pending=build (windows-latest) | ||
- check-pending=build (ubuntu-latest) | ||
- check-pending=build (macos-latest) | ||
- -closed | ||
- -label=enhancement | ||
actions: | ||
label: | ||
add: | ||
- enhancement | ||
|
||
- name: Add automerge label | ||
conditions: | ||
- check-success=build (windows-latest) | ||
- check-success=build (ubuntu-latest) | ||
- check-success=build (macos-latest) | ||
- -draft | ||
- -closed | ||
- -conflict | ||
- -label=automerge | ||
- author~=^(AraHaan|CatGirlsAreLife|JunichiSama|xioke|Elskom-gitsync)$ | ||
actions: | ||
label: | ||
add: | ||
- automerge | ||
|
||
- name: Automatic message on build failure | ||
conditions: | ||
- check-failure=build (windows-latest) | ||
- check-failure=build (ubuntu-latest) | ||
- check-failure=build (macos-latest) | ||
- -draft | ||
- -closed | ||
actions: | ||
comment: | ||
message: | | ||
This PR's build has failed. Ensure it passes before they can be scheduled for automatic merge. | ||
- name: Automatic message on security failure | ||
conditions: | ||
- check-failure=Codacy Static Code Analysis | ||
- -draft | ||
- -closed | ||
actions: | ||
comment: | ||
message: | | ||
This PR's security check has failed. Ensure it passes before they can be scheduled for automatic merge. | ||
- name: Automatic message on signoff failure | ||
conditions: | ||
- check-failure=DCO | ||
- -draft | ||
- -closed | ||
actions: | ||
comment: | ||
message: | | ||
This PR does not add the DCO signoff. Ensure it does before they can be scheduled for automatic merge. | ||
To do that click the details link on the check below to find the steps to resolve this and then force push using ``git push --force`` after it has been completed. | ||
If the PR has multiple commits to simplify it you can also run ``git rebase -i HEAD~x`` where x is the number of commits inside of the PR, then in the interactive program that is opened to edit the data change every line under the first one that starts with ``pick`` to ``fixup`` then save and exit the program git opens, after that git will rebase them into each other and squashes them into a single commit where then you can run ``git commit --amend --signoff`` then force push. | ||
- name: Automatic message on WIP | ||
conditions: | ||
- check-pending=WIP | ||
- -draft | ||
- -closed | ||
actions: | ||
comment: | ||
message: This PR is WIP, when you complete the work remember to unset the WIP state in the title of this PR. | ||
|
||
- name: Automatic message on conflict | ||
conditions: | ||
- -draft | ||
- conflict | ||
actions: | ||
comment: | ||
message: | | ||
This PR is conflicted :sob:. | ||
- name: Automatic merge when automerge label added | ||
conditions: | ||
- -conflict # skip PRs with conflicts | ||
- -draft # filter-out GH draft PRs | ||
- -closed # filter-out closed GH PRs | ||
- base=main | ||
- label=automerge | ||
- check-success=build (windows-latest) | ||
- check-success=build (ubuntu-latest) | ||
- check-success=build (macos-latest) | ||
- check-success=Codacy Static Code Analysis | ||
- check-success=DCO | ||
- check-success=WIP | ||
actions: | ||
comment: | ||
message: This pull request is about to be automerged. | ||
review: | ||
type: APPROVE | ||
message: Automatically approving since automerge label was found. | ||
queue: | ||
name: default | ||
method: squash | ||
update_method: rebase | ||
|
||
- name: Remove automerge label | ||
conditions: | ||
- closed | ||
- label=automerge | ||
actions: | ||
label: | ||
remove: | ||
- automerge | ||
queue_rules: | ||
- name: default | ||
queue_conditions: | ||
- -conflict # skip PRs with conflicts | ||
- -draft # filter-out GH draft PRs | ||
- -closed # filter-out closed GH PRs | ||
- base=main | ||
- label=automerge | ||
- check-success=build (windows-latest) | ||
- check-success=build (ubuntu-latest) | ||
- check-success=build (macos-latest) | ||
- check-success=Codacy Static Code Analysis | ||
- check-success=DCO | ||
- check-success=WIP | ||
merge_method: squash | ||
update_method: rebase | ||
|
||
pull_request_rules: | ||
# for check failures / WIP pending check. | ||
- name: Add enhancement label | ||
conditions: | ||
- check-pending=build (windows-latest) | ||
- check-pending=build (ubuntu-latest) | ||
- check-pending=build (macos-latest) | ||
- -closed | ||
- -label=enhancement | ||
actions: | ||
label: | ||
add: | ||
- enhancement | ||
|
||
- name: Add automerge label | ||
conditions: | ||
- check-success=build (windows-latest) | ||
- check-success=build (ubuntu-latest) | ||
- check-success=build (macos-latest) | ||
- -draft | ||
- -closed | ||
- -conflict | ||
- -label=automerge | ||
- author~=^(AraHaan|CatGirlsAreLife|JunichiSama|xioke|Elskom-gitsync)$ | ||
actions: | ||
label: | ||
add: | ||
- automerge | ||
|
||
- name: Automatic message on build failure | ||
conditions: | ||
- check-failure=build (windows-latest) | ||
- check-failure=build (ubuntu-latest) | ||
- check-failure=build (macos-latest) | ||
- -draft | ||
- -closed | ||
actions: | ||
comment: | ||
message: | | ||
This PR's build has failed. Ensure it passes before they can be scheduled for automatic merge. | ||
- name: Automatic message on security failure | ||
conditions: | ||
- check-failure=Codacy Static Code Analysis | ||
- -draft | ||
- -closed | ||
actions: | ||
comment: | ||
message: | | ||
This PR's security check has failed. Ensure it passes before they can be scheduled for automatic merge. | ||
- name: Automatic message on signoff failure | ||
conditions: | ||
- check-failure=DCO | ||
- -draft | ||
- -closed | ||
actions: | ||
comment: | ||
message: | | ||
This PR does not add the DCO signoff. Ensure it does before they can be scheduled for automatic merge. | ||
To do that click the details link on the check below to find the steps to resolve this and then force push using ``git push --force`` after it has been completed. | ||
If the PR has multiple commits to simplify it you can also run ``git rebase -i HEAD~x`` where x is the number of commits inside of the PR, then in the interactive program that is opened to edit the data change every line under the first one that starts with ``pick`` to ``fixup`` then save and exit the program git opens, after that git will rebase them into each other and squashes them into a single commit where then you can run ``git commit --amend --signoff`` then force push. | ||
- name: Automatic message on WIP | ||
conditions: | ||
- check-pending=WIP | ||
- -draft | ||
- -closed | ||
actions: | ||
comment: | ||
message: This PR is WIP, when you complete the work remember to unset the WIP state in the title of this PR. | ||
|
||
- name: Automatic message on conflict | ||
conditions: | ||
- -draft | ||
- conflict | ||
actions: | ||
comment: | ||
message: | | ||
This PR is conflicted :sob:. | ||
- name: Automatic merge when automerge label added | ||
conditions: | ||
- -conflict # skip PRs with conflicts | ||
- -draft # filter-out GH draft PRs | ||
- -closed # filter-out closed GH PRs | ||
- base=main | ||
- label=automerge | ||
- check-success=build (windows-latest) | ||
- check-success=build (ubuntu-latest) | ||
- check-success=build (macos-latest) | ||
- check-success=Codacy Static Code Analysis | ||
- check-success=DCO | ||
- check-success=WIP | ||
actions: | ||
comment: | ||
message: This pull request is about to be automerged. | ||
review: | ||
type: APPROVE | ||
message: Automatically approving since automerge label was found. | ||
queue: | ||
name: default | ||
|
||
- name: Remove automerge label | ||
conditions: | ||
- closed | ||
- label=automerge | ||
actions: | ||
label: | ||
remove: | ||
- automerge |