swarm/.mergify.yml
Ondřej Šebek 89e613c678
Add the CI file check to mergify (#283)
I made a mistake in #279, for PRs that modify both .hs an .md the dummy would pass 🙄

Copying the logic to .mergify.yml should fix this. 🤞
2021-11-07 15:55:03 +01:00

29 lines
691 B
YAML

pull_request_rules:
- actions:
merge:
strict: smart
method: squash
commit_message: title+body
name: Automatically merge pull requests
conditions:
- or:
- and:
- -files~=\.hs$
- -files~=\.sw$
- -files~=\.cabal$
- -files=stack.yaml
- -files~=cabal.project.*
- -files~=^[^/]*\.yaml$
- -files~=^data/.*\.yaml$
- and:
- check-success=Haskell-CI - Linux - ghc-9.0.1
- check-success=Haskell-CI - Linux - ghc-8.10.4
- label=merge me
- ! '#approved-reviews-by>=1'
- ! '#changes-requested-reviews-by=0'
- actions:
delete_head_branch: {}
name: Delete head branch after merge
conditions:
- merged