Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude Merged PRs Mergify Actions #774

Merged
merged 2 commits into from
Mar 8, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ shared:
- "label=ready-to-merge"
- "check-success=tests"
- "-draft" # Don't include draft PRs
- "-merged"
- or: # Only handle branches that target main or develop branches
- "base=main"
- "base~=^develop"
Expand All @@ -32,6 +33,7 @@ pull_request_rules:
conditions:
- "queue-position=-1" # Not queued
- "-draft" # Don't include draft PRs
- "-merged"
actions:
update:

Expand All @@ -49,6 +51,7 @@ pull_request_rules:

- name: Toggle label on merge conflicts
conditions:
- "-merged"
- conflict
actions:
label:
Expand All @@ -58,6 +61,7 @@ pull_request_rules:
# Don't use a toggle for this, as the label constantly gets applied and removed when tests are rerun.
- name: Add label on test failures
conditions:
- "-merged"
- or:
- check-failure=tests
- check-skipped=tests
Expand All @@ -68,6 +72,7 @@ pull_request_rules:

- name: Remove label on test success
conditions:
- "-merged"
- check-success=tests
actions:
label:
Expand Down