-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): add mergify configuration (#172)
* feat(ci): add mergify configuration * meta: add work-in-progress label * fix: restrict build and docker workflows to main
- Loading branch information
1 parent
b72d854
commit 831fb5e
Showing
4 changed files
with
27 additions
and
0 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
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,20 @@ | ||
pull_request_rules: | ||
- name: self-assign PRs | ||
conditions: | ||
- -merged | ||
- -closed | ||
- "#assignee=0" | ||
actions: | ||
assign: | ||
add_users: | ||
- "{{ author }}" | ||
- name: automatic merge for main when CI passes and 2 reviews and not WIP | ||
conditions: | ||
- "#approved-reviews-by>=1" | ||
- check-success=test | ||
- check-success=build-and-push-image | ||
- base=main | ||
- label!=work-in-progress | ||
actions: | ||
merge: | ||
method: squash |
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 |
---|---|---|
|
@@ -3,6 +3,8 @@ name: Build | |
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
|
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 |
---|---|---|
|
@@ -3,6 +3,8 @@ name: Docker | |
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
env: | ||
|