-
Notifications
You must be signed in to change notification settings - Fork 673
/
auto.config.ts
75 lines (70 loc) · 1.81 KB
/
auto.config.ts
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
import { AutoRc } from '@auto-it/core'
import { INpmConfig } from '@auto-it/npm'
import { ConventionalCommitsOptions } from '@auto-it/conventional-commits'
import { IAllContributorsPluginOptions } from '@auto-it/all-contributors'
import { IOmitCommitsPluginOptions } from '@auto-it/omit-commits'
const npmOptions: INpmConfig = {
exact: true,
commitNextVersion: true,
}
const conventionalCommitsOptions: ConventionalCommitsOptions = {
defaultReleaseType: 'none',
}
const _allContributorsOptions: IAllContributorsPluginOptions = {
exclude: [
'dependabot',
'dependabot[bot]',
'@dependabot[bot]',
'dependabot-preview',
'dependabot-preview[bot]',
'@dependabot-preview[bot]',
],
types: {
infra: ['./github/**/*'],
example: ['examples/**/*'],
doc: ['**/*.mdx', '**/*.md', 'packages/docs/**/*'],
test: ['**/*.test.*', '**/*.spec.*'],
code: [
'packages/**/*.js',
'packages/**/*.ts',
'packages/**/*.jsx',
'packages/**/*.tsx',
'**/package.json',
'**/tsconfig.json',
],
},
}
const omitCommitsOptions: IOmitCommitsPluginOptions = {
subject: [
'Merge branch',
`Merge remote-tracking branch 'origin/stable' into develop`,
'chore:',
'chore(',
'ci(',
'ci:',
'test:',
'test(',
'fix(ci):',
],
}
export default function config(): AutoRc {
return {
baseBranch: 'stable',
prereleaseBranches: ['develop'],
plugins: [
['npm', npmOptions],
['conventional-commits', conventionalCommitsOptions],
'first-time-contributor',
'released',
// ['all-contributors', allContributorsOptions],
['omit-commits', omitCommitsOptions],
// 'magic-zero',
],
labels: [
{
name: 'pushToBaseBranch',
changelogTitle: '👨💻 Minor changes', // 😈
},
],
}
}