forked from Reuf12/apm-pipeline-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.grenrc.js
44 lines (44 loc) · 1.82 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
module.exports = {
"dataSource": "prs",
"prefix": "",
"onlyMilestones": false,
"ignoreCommitsWith": ["chore", "refactor", "style", "(bp #"],
"ignoreIssuesWith": ["no-release"],
"ignoreTagsWith": ["-rc", "-alpha", "-beta", "test", "current"],
"ignoreLabels": ["closed", "automation", "enhancement", "bug", "fix",
"internal", "feature", "feat", "docs", "chore", "refactor", "ci",
"perf", "test", "tests", "style", "groovy", "linux", "master", "mac", "windows",
"team:automation", "ready-to-merge", "backport-to-7.x"],
"groupBy": {
"Enhancements": ["enhancement", "internal", "feature", "feat"],
"Bug Fixes": ["bug", "fix"],
"Documentation": ["docs", "question"],
"No user affected": ["chore", "refactor", "perf", "test", "style"],
"CI": ["ci"]
},
"changelogFilename": "CHANGELOG.md",
"template": {
commit: ({ message, url, author, name }) => `- [${message}](${url}) - ${author ? `@${author}` : name}`,
issue: "- {{labels}} {{name}} [{{text}}]({{url}})",
label: "[**{{label}}**]",
noLabel: "closed",
changelogTitle: "# Changelog\n\n",
release: "## {{release}} ({{date}})\n{{body}}",
releaseSeparator: "\n---\n\n",
group: function (placeholders) {
var icon = "🙈"
if(placeholders.heading == 'Enhancements'){
icon = "🚀"
} else if(placeholders.heading == 'Bug Fixes'){
icon = "🐛"
} else if(placeholders.heading == 'Documentation'){
icon = "📚"
} else if(placeholders.heading == 'No user affected'){
icon = "🙈"
} else if(placeholders.heading == 'CI'){
icon = "⚙️"
}
return '\n#### ' + icon + ' ' + placeholders.heading + '\n';
}
}
}