-
Notifications
You must be signed in to change notification settings - Fork 0
/
branchformat.config.js
64 lines (64 loc) · 1.67 KB
/
branchformat.config.js
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
56
57
58
59
60
61
62
63
64
module.exports = {
config: [
{
name: 'type',
type: 'list',
optional: false,
default: 'feature',
envDefault: '',
message: 'Select branch type: ',
prefix: '',
options: ['feature', 'bugfix', 'hotfix'],
regExp: '(feature|bugfix|hotfix)'
},
{
name: 'swimlane',
type: 'input',
optional: true,
default: '',
envDefault: '',
message: 'Input using swimlane: ',
prefix: 'sl-',
regExp: 'sl-([0-9a-z]{4,}-[a-z]{5})'
},
{
name: 'packageName',
type: 'input',
optional: true,
envDefault: '',
default: '',
message: 'Input subPackage folder name:',
prefix: '@',
regExp: '@([0-9a-z-]+)'
},
{
name: 'businessKey',
type: 'input',
optional: true,
envDefault: '',
default: '',
message: 'Input businessKey: ',
prefix: '#',
regExp: '#([0-9a-zA-Z_]+)',
when: (answers) => {
if (answers.packageName === 'order') return true
return false
}
},
{
name: 'id',
type: 'input',
optional: true,
envDefault: '',
default: '',
message: 'Input relative wiki or issue id: ',
prefix: '',
regExp: '(km-[0-9]+|ones-[0-9]+|tt-[0-9]+)'
}
],
skip: [
'master',
'staging',
'test'
]
}