-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-data.yaml
33 lines (30 loc) · 1.39 KB
/
test-data.yaml
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
# at first specify some project name
"project xyz":
# path to the git repository this project configuration should be used for
path: "/home/nils/projects/xyz/.git"
# define types of branch and a pattern to identify the type for the current branch you are working on
branch:
master: "^(origin\\/)*master"
feature: "^(origin\\/)*feature/.*$"
develop: "^(origin\\/)*develop$"
release: "^(origin\\/)*release\\/v([0-9]*\\.*)*$"
hotfix: "^(origin\\/)*hotfix\\/v([0-9]*\\.*)*$"
# define a commit message template per branch type, or as here for all (*) branch types
# templates for defined branch types are taken in advance of * template
template:
"*": "{.BranchName}: {.CommitMessage}"
# define validation rules per branch type
# for example "commit messages in feature branches should always contain a ticket reference"
validation:
develop:
"(?m)(?:\\s|^|/)(([A-Z](_)*)+-[0-9]+)([\\s,;:!.-]|$)" : "valid ticket ID"
"(?m)@noissue" : "@noissue"
release:
"(?m)(?:\\s|^|/)(([A-Z](_)*)+-[0-9]+)([\\s,;:!.-]|$)" : "valid ticket ID"
"(?m)@rc-fix" : "an @rc-fix indicator"
"(?m)@noissue" : "@noissue"
master:
"(?m)(?:\\s|^|/)(([A-Z](_)*)+-[0-9]+)([\\s,;:!.-]|$)" : "valid ticket ID"
"(?m)@noissue" : "@noissue"
"*":
"(?m)(?:\\s|^|/)(([A-Z](_)*)+-[0-9]+)([\\s,;:!.-]|$)" : "valid ticket ID (fallback validator)"