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

chore(build): add mergify workflow #385

Merged
merged 2 commits into from
Mar 18, 2022
Merged
Changes from 1 commit
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
39 changes: 39 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
pull_request_rules:
- name: Approve and merge non-major version dependabot upgrades
conditions:
- author~=^dependabot\[bot\]$
- check-success~=lint
- check-success~=build
- check-success~=test
- title~=Bump [^\s]+ from ([\d]+)\..+ to \1\.
actions:
review:
type: APPROVE
merge:
method: squash

- name: Approve and merge Snyk.io upgrades
conditions:
- author=snyk-bot
- check-success~=lint
- check-success~=build
- check-success~=test
- title~=^\[Snyk\]
actions:
review:
type: APPROVE
merge:
method: squash

- name: Automatically delete branches after they have been merged
conditions:
- merged
actions:
delete_head_branch:

- name: Automatically mark a PR as draft if [WIP] is in the title
conditions:
- title~=(?i)\[wip\]
actions:
edit:
draft: True