-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchangelog.config.mjs
43 lines (34 loc) · 971 Bytes
/
changelog.config.mjs
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
import isCI from 'is-ci'
if (!isCI) {
// @hack(dotenv) 14.3.0 breaking change
const dotenv = await import('dotenv')
dotenv.default.config({ path: './.env' })
}
// eslint-disable-next-line no-undef
const isOverride = process.env.GIT_CZ__OVERRIDE_TEST || false
const enabled = isOverride
const _types = {}
const commit = isOverride
? {
after: { branchName: ' ', emoji: ' ', scope: ') ' },
before: { branchName: '', emoji: '', scope: '(' },
format: '{emoji}{scope}{branchName}{subject}',
maxMessageLength: 64,
minMessageLength: 3,
questions: [
'branchFlag',
'commitBreakingFlag',
'commitBreaking',
// 'commitScopes',
'commitTypes',
'commitSubject',
'commitBodyFlag',
'commitBody',
],
scopes: [],
}
: {}
const branch = {}
const types = isOverride ? _types : {}
const changelog = { branch, commit, enabled, types }
export default changelog