forked from microsoft/documentdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic repository and Mergify configuration (#6)
- Loading branch information
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |