generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jan Macku <null>
- Loading branch information
Showing
1 changed file
with
134 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
# doc: https://docs.mergify.com | ||
--- | ||
|
||
pull_request_rules: | ||
|
||
- name: Automatic merge (squash) on approval & CI pass | ||
conditions: | ||
- "#approved-reviews-by>=1" | ||
- "#review-requested=0" | ||
- "#changes-requested-reviews-by=0" | ||
- check-success=check-dist | ||
- check-success=CodeQL | ||
- check-success=Linters | ||
- check-success=Super Linter | ||
- check-success=Unit Tests - Node.js (16.x) | ||
- check-success=Unit Tests - Node.js (18.x) | ||
- -draft | ||
- label!=dont-merge | ||
- "label!=merge-strategy: rebase" | ||
- -title~=(?i)wip | ||
- base=main | ||
actions: | ||
merge: | ||
method: squash | ||
|
||
- name: Automatic merge (rebase) on approval & CI pass | ||
conditions: | ||
- "#approved-reviews-by>=1" | ||
- "#review-requested=0" | ||
- "#changes-requested-reviews-by=0" | ||
- check-success=check-dist | ||
- check-success=CodeQL | ||
- check-success=Linters | ||
- check-success=Super Linter | ||
- check-success=Unit Tests - Node.js (16.x) | ||
- check-success=Unit Tests - Node.js (18.x) | ||
- -draft | ||
- label!=dont-merge | ||
- "label=merge-strategy: rebase" | ||
- -title~=(?i)wip | ||
- base=main | ||
actions: | ||
merge: | ||
method: rebase | ||
rebase_fallback: none | ||
|
||
- name: Delete head branch after merge | ||
conditions: | ||
- head!=main | ||
- merged | ||
actions: | ||
delete_head_branch: | ||
|
||
# --- --- Labels --- --- # | ||
|
||
- name: Add source label | ||
conditions: | ||
- files~=^src/ | ||
actions: | ||
label: | ||
add: | ||
- source | ||
|
||
- name: Remove source label | ||
conditions: | ||
- -files~=^src/ | ||
actions: | ||
label: | ||
remove: | ||
- source | ||
|
||
# --- # | ||
|
||
- name: Add configuration label | ||
conditions: | ||
- or: | ||
- files~=\.yml$ | ||
- files~=\.json$ | ||
- files~=\.config.ts$ | ||
actions: | ||
label: | ||
add: | ||
- configuration | ||
|
||
- name: Remove configuration label | ||
conditions: | ||
- and: | ||
- -files~=\.yml$ | ||
- -files~=\.json$ | ||
- -files~=\.config.ts$ | ||
actions: | ||
label: | ||
remove: | ||
- configuration | ||
|
||
# --- # | ||
|
||
- name: Add documentation label | ||
conditions: | ||
- or: | ||
- files~=\.md$ | ||
- files~=\.png$ | ||
actions: | ||
label: | ||
add: | ||
- documentation | ||
|
||
- name: Remove documentation label | ||
conditions: | ||
- and: | ||
- -files~=\.md$ | ||
- -files~=\.png$ | ||
actions: | ||
label: | ||
remove: | ||
- documentation | ||
|
||
# --- # | ||
|
||
- name: Add test label | ||
conditions: | ||
- files~=^test/ | ||
actions: | ||
label: | ||
add: | ||
- test | ||
|
||
- name: Remove test label | ||
conditions: | ||
- -files~=^test/ | ||
actions: | ||
label: | ||
remove: | ||
- test |