-
Notifications
You must be signed in to change notification settings - Fork 0
/
auto.config.js
98 lines (97 loc) · 2.5 KB
/
auto.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
const npmOptions = {
exact: true,
};
/** Auto configuration */
module.exports = function rc() {
return {
author: 'Release Bot <dev@codecademy.com>',
baseBranch: 'main',
plugins: [
[
'all-contributors',
{
exclude: ['dependabot', 'codecademydev'],
},
],
['npm', npmOptions],
[
'released',
{
label: ':shipit:',
},
],
'first-time-contributor',
],
noDefaultLabels: true,
labels: [
{
name: 'release/major',
changelogTitle: '💥 Breaking Change',
description: 'Increment the major version when merged',
releaseType: 'major',
color: '#C5000B',
},
{
name: 'release/minor',
changelogTitle: '🚀 Enhancement',
description: 'Increment the minor version when merged',
releaseType: 'minor',
color: '#F1A60E',
},
{
name: 'release/patch',
changelogTitle: '🐛 Bug Fix',
description: 'Increment the patch version when merged',
releaseType: 'patch',
color: '#870048',
},
{
name: 'release/skip',
description: 'Preserve the current version when merged',
releaseType: 'skip',
color: '#bf5416',
},
{
name: 'release',
description: 'Create a release when this pr is merged',
releaseType: 'release',
color: '#007f70',
},
{
name: 'release/internal',
changelogTitle: '🏠 Internal',
description: 'Changes only affect the internal API',
releaseType: 'none',
color: '#696969',
},
{
name: 'release/documentation',
changelogTitle: '📝 Documentation',
description: 'Changes only affect the documentation',
releaseType: 'none',
color: '#cfd3d7',
},
{
name: 'release/tests',
changelogTitle: '🧪 Tests',
description: 'Add or improve existing tests',
releaseType: 'none',
color: '#ffd3cc',
},
{
name: 'release/dependencies',
changelogTitle: '🔩 Dependency Updates',
description: 'Update one or more dependencies version',
releaseType: 'patch',
color: '#8732bc',
},
{
name: 'release/performance',
changelogTitle: '🏎 Performance',
description: 'Improve performance of an existing feature',
releaseType: 'patch',
color: '#f4b2d8',
},
],
};
};