Skip to content

Commit

Permalink
Updated mergify rules
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Feb 16, 2022
1 parent cc272b1 commit d86177f
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ pull_request_rules:
- name: Automatic Merge ⬇️ on Approval ✔
conditions:
- "#approved-reviews-by>=1"
- label!=work-in-progress
- "#review-requested=0"
- "#changes-requested-reviews-by=0"
- check-success='test (1.16.x, ubuntu-latest)'
- check-success='test (1.17.x, ubuntu-latest)'
- check-success='Analyze (go)'
- -title~=(?i)wip
- label!=work-in-progress
- -draft
actions:
merge:
Expand Down Expand Up @@ -95,12 +98,20 @@ pull_request_rules:
# - chore: updating grunt tasks etc.; no production code change
# - docs: changes to the documentation
# - feat: feature or story
# - feat: new feature for the user, not a new feature for build script
# - feature: new feature or story
# - fix: bug fix for the user, not a fix to a build script
# - idea: general idea or suggestion
# - question: question regarding code
# - test: test related changes
# - wip: work in progress PR
# ===============================================================================

- name: Work in Progress
conditions:
- "head~=(?i)^wip" # if the PR branch starts with wip/
actions:
label:
add: ["work-in-progress"]
- name: Hotfix label
conditions:
- "head~=(?i)^hotfix" # if the PR branch starts with hotfix/
Expand All @@ -112,13 +123,13 @@ pull_request_rules:
- "head~=(?i)^(bug)?fix" # if the PR branch starts with (bug)?fix/
actions:
label:
add: [ "bug-P3" ]
add: ["bug-P3"]
- name: Documentation label
conditions:
- "head~=(?i)^docs" # if the PR branch starts with docs/
actions:
label:
add: [ "documentation" ]
add: ["documentation"]
- name: Feature label
conditions:
- "head~=(?i)^feat(ure)?" # if the PR branch starts with feat(ure)?/
Expand Down

0 comments on commit d86177f

Please sign in to comment.