mergify: replace bors's merge queue

This commit is contained in:
Jörg Thalheim 2023-06-12 06:41:43 +02:00
parent 0741e1f4ab
commit 239f8d26c9
3 changed files with 18 additions and 22 deletions

View file

@ -19,3 +19,5 @@ jobs:
uses: DeterminateSystems/update-flake-lock@v19
with:
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
pr-labels: | # Labels to be set on the PR
merge-queue

View file

@ -1,15 +1,21 @@
pull_request_rules:
- name: automatic merge on CI success
conditions:
queue_rules:
- name: default
merge_conditions:
- check-success=Evaluate flake.nix
- check-success=package nix-eval-jobs [x86_64-linux]
- check-success=devShell default [x86_64-linux]
- check-success=check treefmt [x86_64-linux]
- check-success=devShell default [x86_64-linux]
- check-success=package default [x86_64-linux]
- check-success=tests (ubuntu-latest)
- check-success=package nix-eval-jobs [x86_64-linux]
- check-success=tests (macos-latest)
- author=nix-eval-jobs-bot
- check-success=tests (ubuntu-latest)
defaults:
actions:
queue:
allow_merging_configuration_change: true
pull_request_rules:
- name: merge using the merge queue
conditions:
- base=main
- label=merge-queue
actions:
merge:
method: merge
delete_head_branch: {}
queue: {}

View file

@ -1,12 +0,0 @@
cut_body_after = "" # don't include text from the PR body in the merge commit message
status = [
# garnix
"Evaluate flake.nix",
"package nix-eval-jobs [x86_64-linux]",
"devShell default [x86_64-linux]",
"check treefmt [x86_64-linux]",
"package default [x86_64-linux]",
# github actions
"tests (ubuntu-latest)",
"tests (macos-latest)"
]