-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.grenrc.js
More file actions
31 lines (31 loc) · 877 Bytes
/
.grenrc.js
File metadata and controls
31 lines (31 loc) · 877 Bytes
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
module.exports = {
dataSource: 'prs',
ignoreLabels: ['npm release', 'ignore'],
onlyMilestones: false,
groupBy: {
'Bug Fixes': ['fix', 'bug'],
Features: ['feat'],
'Code Refactoring': ['refactor'],
Documentation: ['docs'],
Build: ['build'],
'Performance Improvements': ['perf'],
'BREAKING CHANGES': ['breaking change'],
Other: ['closed']
},
changelogFilename: 'CHANGELOG.md',
template: {
group: "\n### {{heading}}\n",
issue: function(placeholders) {
let name = placeholders.name;
let body = placeholders.body;
if (name.indexOf(':') !== -1) {
[type, subject] = name.split(':');
name = `**${type}:**${subject}`;
}
if (placeholders.body) {
body = `\n\n${body}`;
}
return `- ${name.toLowerCase()} [${placeholders.text}](${placeholders.url})${body}`;
}
}
};