-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathcommitlint.config.mjs
54 lines (52 loc) · 1.12 KB
/
commitlint.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
44
45
46
47
48
49
50
51
52
53
54
// import config from "./.github/commit-config.js"
export const types = ["build", "chore", "fix", "feat", "refactor", "research", "style", "test"]
export const scopes = [
"build",
"config",
"ci",
"core",
"docs",
"deps",
"infra",
"ui",
"version",
"access-profile",
"audit",
"automation",
"block-storage",
"cloudops",
"compute",
"dns-service",
"email-service",
"identity",
"image",
"inquiry",
"keppel",
"key-manager",
"kubernetes",
"lbaas",
"lookup",
"masterdata-cockpit",
"metrics",
"networking",
"object-storage",
"reports",
"resources",
"shared-filesystem-storage",
"tools",
"webconsole",
/^ISSUE-\d+$/, // Regex pattern for ISSUE-<number>]
]
export default {
extends: ["@commitlint/config-conventional"],
rules: {
"type-enum": [2, "always", types], // Enforces the type to be one of the specified values
"scope-enum": [2, "always", scopes],
"scope-case": [2, "always", "kebab-case"], // Enforces kebab-case
"subject-case": [
2,
"never",
["start-case", "pascal-case", "upper-case"], // Disallows certain cases for the subject
],
},
}