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

ci(mergify): upgrade configuration to current format #220

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Changes from all commits
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
32 changes: 13 additions & 19 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
queue_rules:
- name: default
conditions:
# Conditions to get out of the queue (= merged)
queue_conditions:
- label!=no-mergify
- -draft
- approved-reviews-by=@fedora-infra/fedora-infrastructure-developers
- "#changes-requested-reviews-by=0"
- check-success=Misc tests (lint)
- check-success=Misc tests (format)
- check-success=Misc tests (security)
Expand All @@ -10,20 +13,8 @@ queue_rules:
- check-success=Unit tests (py39)
- check-success=Unit tests (py310)
- check-success=Unit tests (flask1)


pull_request_rules:

- name: Merge on approval
actions:
queue:
name: default
method: rebase
conditions:
- label!=no-mergify
- -draft
- approved-reviews-by=@fedora-infra/fedora-infrastructure-developers
- "#changes-requested-reviews-by=0"
merge_conditions:
# Conditions to get out of the queue (= merged)
- check-success=Misc tests (lint)
- check-success=Misc tests (format)
- check-success=Misc tests (security)
Expand All @@ -32,11 +23,10 @@ pull_request_rules:
- check-success=Unit tests (py39)
- check-success=Unit tests (py310)
- check-success=Unit tests (flask1)
merge_method: rebase

pull_request_rules:

# Pre-commit autoupdates. Don't expect the CI to have run for this one:
# https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#triggering-new-workflows-using-a-personal-access-token
# In the workflow, we do a pre-commit run before creating the PR.
- name: Merge pre-commit autoupdates
actions:
merge:
Expand All @@ -47,3 +37,7 @@ pull_request_rules:
- author=github-actions[bot]
- title=Auto-update pre-commit hooks
- "#changes-requested-reviews-by=0"
- name: refactored queue action rule
conditions: []
actions:
queue: