-
Notifications
You must be signed in to change notification settings - Fork 0
/
commitlint.config.js
37 lines (36 loc) · 941 Bytes
/
commitlint.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
const config = {
extends: ["@commitlint/config-conventional"],
//Ignore bump messages for dependabot bump commits, sometimes creates headers longer than the character limit thus failing the workflow
ignores: [(message) => message.includes("chore(release)")],
rules: {
"scope-enum": [
// eslint-disable-next-line @typescript-eslint/no-var-requires
require("@commitlint/types").RuleConfigSeverity.Warning,
"always",
// List all the repo packages here
["global", "gogol", "bulgakov", "bulgakov-api", "dostoevsky", "libs", "ui"],
],
},
prompt: {
questions: {
scope: {
description: "Select the project",
enum: {
gogol: {
description: "Voice server",
title: "Gogol",
},
bulgakov: {
description: "API server",
title: "Bulgakov",
},
libs: {
description: "any library change",
title: "libs",
},
},
},
},
},
};
module.exports = config;