Skip to content

Commit

Permalink
block merging if PR has a 'blocked:' label
Browse files Browse the repository at this point in the history
  • Loading branch information
geekosaur committed Jun 23, 2024
1 parent bcd1d70 commit 2f70757
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ pull_request_rules:
- label=merge me
- label=merge delay passed
- '#approved-reviews-by>=2'
- '-label~=^blocked:'

# merge+squash strategy
- actions:
Expand All @@ -47,6 +48,7 @@ pull_request_rules:
- label=squash+merge me
- label=merge delay passed
- '#approved-reviews-by>=2'
- '-label~=^blocked:'

# merge+no rebase strategy
- actions:
Expand All @@ -58,6 +60,7 @@ pull_request_rules:
- label=merge+no rebase
- label=merge delay passed
- '#approved-reviews-by>=2'
- '-label~=^blocked:'

# merge strategy for release branches
- actions:
Expand All @@ -73,6 +76,7 @@ pull_request_rules:
- base!=master
- -body~=backport
- '#approved-reviews-by>=2'
- '-label~=^blocked:'

# merge+squash strategy for release branches
- actions:
Expand All @@ -88,6 +92,7 @@ pull_request_rules:
- label=squash+merge me
- -body~=backport
- '#approved-reviews-by>=2'
- '-label~=^blocked:'

# merge strategy for backports: require 1 approver instead of 2
- actions:
Expand All @@ -103,6 +108,7 @@ pull_request_rules:
- base!=master
- body~=backport
- '#approved-reviews-by>=1'
- '-label~=^blocked:'

# merge+squash strategy for backports: require 1 approver instead of 2
- actions:
Expand All @@ -118,6 +124,7 @@ pull_request_rules:
- base!=master
- body~=backport
- '#approved-reviews-by>=1'
- '-label~=^blocked:'

# backports should be labeled as such
- actions:
Expand Down

0 comments on commit 2f70757

Please sign in to comment.