Skip to content

Commit

Permalink
build(ci): added Mergify config (#1016)
Browse files Browse the repository at this point in the history
<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
v                               ✰  Thanks for creating a PR! ✰
v    Before smashing the submit button please review the checkboxes.
v If a checkbox is n/a - please still include it but + a little note why
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >  -->

## Description

This PR adds the configuration to properly support
[Mergify](https://mergify.com/) in order to be able to automatically
merge PR requests once the following checks have passed:

- the base branch in set to either `base` or `chains/*` 
- all the PR checks within GitHub are passing 
- the PR has the `automerge` label


## Checklist
- [ ] Ran Linting
- [ ] Targeted PR against correct branch.
- [ ] Linked to Github issue with discussion and accepted design OR link
to spec that describes this work.
- [ ] Wrote unit tests.
- [ ] Added an entry to the `CHANGELOG.md` file.
- [ ] Re-reviewed `Files changed` in the Github PR explorer.
  • Loading branch information
RiccardoM committed Oct 4, 2022
1 parent e45102b commit 119eaba
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
queue_rules:
- name: default
conditions:
- or:
- base=base
- base~=chains/

pull_request_rules:
- name: Automerge with label automerge and branch protection passing
conditions:
- "#approved-reviews-by>1"
- label=automerge
actions:
queue:
name: default
method: squash
commit_message_template: >
{{ title }} (#{{ number }})
{{ body }}

0 comments on commit 119eaba

Please sign in to comment.