Skip to content

Commit

Permalink
Add basic repository and Mergify configuration (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi authored Feb 20, 2025
1 parent fc8f917 commit 8a85bdd
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
# see https://docs.mergify.com/

pull_request_rules:
- name: "Assign PRs"
conditions:
- "-closed"
- "#assignee = 0"
actions:
assign:
add_users: ["{{ author }}"]

- name: "Add label on conflicts"
conditions:
- "conflict"
actions:
comment:
message: "@{{author}} this pull request has merge conflicts."
label:
add: [conflict]

- name: "Remove label when conflicts were resolved"
conditions:
- "-conflict"
actions:
label:
remove: [conflict]
38 changes: 38 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
# https://github.com/repository-settings/app

repository:
allow_squash_merge: true
allow_merge_commit: true
allow_rebase_merge: false
allow_auto_merge: true
allow_update_branch: true
delete_branch_on_merge: true
enable_automated_security_fixes: true
enable_vulnerability_alerts: true

# https://docs.github.com/en/rest/issues/labels
labels:
- name: conflict
color: "#FF0000"
description: PRs that have merge conflicts

- name: deps
color: "#D4C5F9"
description: PRs that update dependencies

- name: do not merge
color: "#0052CC"
description: PRs that should not be merged

- name: not ready
color: "#000000"
description: Issues that are not ready to be worked on; PRs that should skip CI

- name: packages
color: "#9B022C"
description: PRs that should build packages

- name: trust
color: "#00FF00"
description: PRs that can access Actions secrets

0 comments on commit 8a85bdd

Please sign in to comment.