-
Notifications
You must be signed in to change notification settings - Fork 1
/
.grenrc.js
54 lines (54 loc) · 1.53 KB
/
.grenrc.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
module.exports = {
dataSource: "prs",
prefix: "",
onlyMilestones: false,
ignoreTagsWith: [],
ignoreLabels: [],
tags: "all",
groupBy: {
"Major Changes": ["semver-major", "breaking-change"],
"Minor Changes": ["semver-minor", "enhancement", "new-feature"],
Dependencies: ["dependencies"],
"Bug Fixes": ["semver-patch", "bug", "security"],
Documentation: ["documentation"],
"Technical Tasks": ["chore"],
Other: ["..."],
},
changelogFilename: "CHANGELOG.md",
username: "xmldom",
repo: "is-dom-node",
template: {
issue: function (placeholders) {
const parts = [
"-",
placeholders.labels,
placeholders.name,
`[${placeholders.text}](${placeholders.url})`,
];
return parts
.filter((_) => _)
.join(" ")
.replace(" ", " ");
},
release: function (placeholders) {
placeholders.body = placeholders.body.replace(
"*No changelog for this release.*",
"\n_No changelog for this release._",
);
return `## ${placeholders.release} (${placeholders.date})\n${placeholders.body}`;
},
group: function (placeholders) {
const iconMap = {
Enhancements: "🚀",
"Minor Changes": "🚀",
"Bug Fixes": "🐛",
Documentation: "📚",
"Technical Tasks": "⚙️",
"Major Changes": "💣",
Dependencies: "🔗",
};
const icon = iconMap[placeholders.heading] || "🙈";
return "\n### " + icon + " " + placeholders.heading + "\n";
},
},
};