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 fe1118a commit 35925e9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Basic dependabot.yml to update gomod
# Basic dependabot.yml to update gomod and Github Actions

version: 2
updates:
Expand Down
17 changes: 14 additions & 3 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,13 @@ pull_request_rules:
- name: Automatic Merge ⬇️ on Approval ✔
conditions:
- "#approved-reviews-by>=1"
- "#review-requested=0"
- "#changes-requested-reviews-by=0"
- check-success='test (1.15.x, ubuntu-latest)'
- 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:
Expand Down Expand Up @@ -98,12 +101,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 @@ -115,13 +126,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 35925e9

Please sign in to comment.