-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrobo.yml
51 lines (51 loc) · 2.96 KB
/
robo.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
# This file is used when contributing to check for coding standards.
command:
validate:
coding-standards:
options:
paths:
# Robo projects use psr2 standards.
src:
extensions: php
standard: psr2
commit-messages:
options:
# This is the branch that the current branch is going to be merged into.
target-branch: 1.x
# The regular expression that much match for all commits not in 'target-branch'.
# Note how {$project_id} is not part of the pattern but replaced with whatever is
# in 'project-id' before the regular expression is used.
pattern: '/^(close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved) #\d+: /'
# These next two describe how the commits should be formed.
short-help: 'Commit messages must start with: ''[KEYWORD] #x:y'''
long-help:
- 'Where x is the issue number.'
- 'And y is a space.'
- ''
- 'Please see all valid [KEYWORD] at https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue'
-
- 'How do I update my commit messages?'
- 'See https://www.atlassian.com/git/tutorials/rewriting-history'
- ''
- 'After re-rewriting the history, you should --force-with-lease the push.'
- 'https://stackoverflow.com/questions/52823692/git-push-force-with-lease-vs-force#:~:text=%2D%2Dforce%2Dwith%2Dlease%20is%20a%20safer%20option%20that%20will,elses%20work%20by%20force%20pushing.'
# Used in 'validate:branch-name'
branch-name:
options:
# The regular expression that must match the branch name.
pattern: '/^feature\/([\d]{1,})-(?!.*--)([a-z\d]{1})([a-z\d-]{3,})([a-z\d]{1})$/'
# Show help messages if the branch name does not match.
custom-help:
- 'feature/x-y Where x is the issue number and y can be:'
- ' - Always lower case.'
- ' - Starts and end with a letter or integer.'
- ' - Contains letters, integers, or dashes (non-consecutive).'
- ' - At least 5 characters long.'
# These refer to all the possible branch names. There are 4 different types and they will be
# described below. If you'd like to override any of these, you must put all back in that you'd like to
# use, they will not be merged together.
valid-branch-names:
# Matches a branch named '1.x'.
- 'explicit|1.x'
# Matches a custom regular expression found in $pattern.
- 'custom|'