-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run ci for a PR only if it's labeled ci. Added mergify rules
- Loading branch information
1 parent
9a62cf9
commit b4305ca
Showing
2 changed files
with
36 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# https://docs.mergify.com/merge-queue/lifecycle/ | ||
# The merge queue tests pull requests against the latest version of the base branch. Therefore, if a new commit is pushed to the base branch, Mergify resets the process and starts over with the updated base branch. | ||
|
||
# https://docs.mergify.com/configuration/file-format/ | ||
pull_request_rules: | ||
- name: "Automatic queue when CI passes and approved" | ||
conditions: | ||
# Mergify receives an PR event(`opened``, `reopened`` and etc.), does some actions(`queue` here) if following conditions are all true. | ||
- "#approved-reviews-by>=2" | ||
- "check-success=tests" | ||
actions: | ||
queue: | ||
queue_rules: | ||
- name: default | ||
queue_conditions: | ||
# Mergify receives `queue` or `requeue` command, queues the PR if following conditions are all true. | ||
- "#approved-reviews-by>=1" | ||
- "check-success=tests" | ||
merge_conditions: | ||
- "check-success=tests" | ||
merge_method: squash | ||
update_method: rebase |
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