-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcommitlint.config.mjs
More file actions
54 lines (52 loc) · 1.25 KB
/
commitlint.config.mjs
File metadata and controls
54 lines (52 loc) · 1.25 KB
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 = [
"feat", // new feature
"fix", // bug fix
"docs", // documentation
"style", // formatting, missing semicolons, etc
"refactor", // code change that neither fixes a bug nor adds a feature
"test", // adding missing tests
"chore", // maintain
"perf", // performance improvements
"ci", // continuous integration
"build", // build system or external dependencies
"revert", // revert previous commit
]
export const scopes = [
"build",
"config",
"ci",
"core",
"dashboard",
"gardener",
"network",
"template",
"aurora-portal",
"portal",
"aurora-sdk",
"signal-openstack",
"polaris",
"bff",
"docs",
"deps",
"infra",
"npm",
"template",
"ui",
"version",
"identity",
/^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
],
},
}