-
Notifications
You must be signed in to change notification settings - Fork 23
/
.gitmagic.yml
55 lines (49 loc) · 1.99 KB
/
.gitmagic.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
50
51
52
53
54
55
pr:
- rules:
- title.eq./^((fix|feat|feature|docs|refactor|style|test|chore|build|perf|ci|revert|Revert|Merge|merge)\(.+\):)|((revert|Revert|Merge|merge):)/
message: "{{type}} title must use proper `<type>` or `<scope>`."
- conditions:
- owner.ne.dependabot
rules:
- tense.eq.imperative
message: "{{type}} title must use imperative form - e.g. Add, Fix etc"
- conditions:
- branch.ne.dev
- branch.ne.master
- branch.ne.develop
rules:
- branch.eq./^(fix|feat|feature|docs|refactor|style|test|chore|build|perf|ci|dependabot)\/.+/
message: "Branch name must have a proper prefix."
- rules:
- commitTitles.eq./^((fix|feat|docs|refactor|style|test|chore|build|perf|ci|revert|Revert|Merge|merge)\(.+\):)|((revert|Revert|Merge|merge):)/
message: "`<header>` of commit message must use proper `<type>` or `<scope>`."
- conditions:
- owner.ne.dependabot[bot]
rules:
- commitTitles.lt.51
message: "`<header>` of commit message needs to be less than 51 characters long"
- conditions:
- owner.ne.dependabot[bot]
rules:
- commitTenses.eq.imperative
message: "Commit message must use imperative form - e.g. Add, Fix etc"
# - conditions:
# - owner.ne.dependabot[bot]
# rules:
# - commitBodies.lt.73
# message: "Each line in `<body>` of commit message needs to be less than 73 characters long"
issue:
- conditions:
- labels.eq.bug
rules:
- body.eq./reproduction|reproduce/i
message: |
As you have added a bug label please add your reproduction steps in the body using one of:
* reproduction steps
* to reproduce
settings:
header: |
@{{owner}} - Your {{type}} does not follow our contribution guidelines. Please review the following issues and update.
footer: |
If you have any questions, please refer to our [Contributing Guidelines](https://github.com/BobAnkh/auto-generate-changelog/blob/master/CONTRIBUTING.md) or ask us here.
Thanks