Skip to content

Commit

Permalink
feat: add merge queue configuration (#470)
Browse files Browse the repository at this point in the history
* meta: add WIP label
* fix: remove dependabot configuration
* refactor: move renovate config to .github
* fix: label renovate PRs as "dependencies"
* feat: add mergify merge queue configuration
  • Loading branch information
cameronraysmith authored Sep 13, 2023
1 parent 454f703 commit 14c9328
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 22 deletions.
21 changes: 0 additions & 21 deletions .github/dependabot.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,6 @@
- name: wontfix
description: This will not be worked on
color: ffffff
- name: work-in-progress
description: Work in progress that should not be auto-merged
color: ffffff
28 changes: 28 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
pull_request_rules:
- name: self-assign PRs
conditions:
- -merged
- -closed
- "#assignee=0"
actions:
assign:
add_users:
- "{{ author }}"
- name: automatic merge when not WIP, CI passes, and at least 1 approving review
conditions:
- "#approved-reviews-by>=1"
- check-success=tests 3.10 / ubuntu-latest
- check-success=pre-commit 3.10 / ubuntu-latest
- check-success=docs-build 3.10 / ubuntu-latest
- base=master
- label!=work-in-progress
actions:
queue:
method: squash
name: default
queue_rules:
- name: default
conditions:
- check-success=tests 3.10 / ubuntu-latest
- check-success=pre-commit 3.10 / ubuntu-latest
- check-success=docs-build 3.10 / ubuntu-latest
3 changes: 2 additions & 1 deletion renovate.json → .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
":semanticCommits",
":semanticCommitTypeAll(chore)",
":semanticCommitScope(deps)"
]
],
"labels": ["dependencies"]
}

0 comments on commit 14c9328

Please sign in to comment.