-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
49 lines (49 loc) · 1.59 KB
/
.mergify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
pull_request_rules:
- name: Ping PR author when conflicting
description: Warn the pull request author when their PR are conflicting
conditions:
- conflict
- '-closed'
actions:
comment:
message: >
👋 @{{author}} your PR is conflicting and needs to be updated to be merged 😉
- name: Ping PR author when title does not follow conventional commits
description: Warn the pull request author when their PR title does not follow conventional commits
conditions:
- '-title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:(.+))?:'
actions:
comment:
message: >
👋 @{{author}} your PR title does not follow conventional commits guidelines.
⚠️ If squashed, the new commit won't be complaint with those conventions (please, refer to https://www.conventionalcommits.org/).
- name: Automatic rebase
conditions:
- check-success~=.*Success
- '#review-threads-unresolved=0'
- base=master
- label=auto-rebase
- '-draft'
- '-conflict'
actions:
merge:
method: rebase
merge_bot_account: tassiluca
- name: Automatic squash
conditions:
- check-success~=.*Success
- '#review-threads-unresolved=0'
- base=master
- label=auto-squash
- '-draft'
- '-conflict'
actions:
merge:
method: squash
merge_bot_account: tassiluca
- name: Delete head branch after merge but not if other PRs depend on it
conditions:
- merged
actions:
delete_head_branch:
force: false