Repository navigation
Expand file tree
/
Copy path.grenrc.js
More file actions
75 lines (74 loc) · 2.46 KB
/
Copy path.grenrc.js
File metadata and controls
75 lines (74 loc) · 2.46 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Fixed in one merge from a private fork on each release line, so the commits carrying them
// have no pull request to take a title or labels from.
const signatureBypassAdvisories = {
title:
"Address CVEs: [CVE-2025-29774](https://github.com/node-saml/xml-crypto/security/advisories/GHSA-9p8x-f768-wp2g) and [CVE-2025-29775](https://github.com/node-saml/xml-crypto/security/advisories/GHSA-x3m8-899r-f7c3)",
labels: ["security"],
};
module.exports = {
dataSource: "prs",
prefix: "",
onlyMilestones: false,
ignoreTagsWith: [],
// Dependabot adds these next to "dependencies"; they say nothing a reader needs.
ignoreLabels: ["javascript", "github_actions", "java"],
// The master-side copies of changes already released from 6.x, which git cannot tell
// are the same change as the commits that shipped.
ignoreIssuesWith: ["duplicate"],
commitNotes: {
"8ac6118ee7": signatureBypassAdvisories,
"28f92218ec": signatureBypassAdvisories,
"886dc63a8b": signatureBypassAdvisories,
},
tags: "all",
groupBy: {
"Major Changes": ["breaking-change"],
"Minor Changes": ["enhancement"],
Deprecations: ["deprecation"],
Dependencies: ["dependencies"],
"Bug Fixes": ["bug", "security"],
Documentation: ["documentation"],
Tests: ["tests"],
"Technical Tasks": ["chore"],
Other: ["..."],
},
changelogFilename: "CHANGELOG.md",
username: "node-saml",
repo: "xml-crypto",
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": "🚀",
Deprecations: "⚠️",
"Bug Fixes": "🐛",
Documentation: "📚",
Tests: "🧪",
"Technical Tasks": "⚙️",
"Major Changes": "💣",
Dependencies: "🔗",
};
const icon = iconMap[placeholders.heading] || "🙈";
return "\n### " + icon + " " + placeholders.heading + "\n";
},
},
};