-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathchangelogTemplate.mustache
72 lines (67 loc) · 1.6 KB
/
changelogTemplate.mustache
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
# Changelog
Changelog for [{{repoName}}](https://github.com/{{ownerName}}/{{repoName}}).
{{#tags}}
## [{{name}}](https://github.com/{{ownerName}}/{{repoName}}{{#ifReleaseTag .}}/releases/tag/{{name}}{{/ifReleaseTag}}){{#ifReleaseTag .}} ({{tagDate .}}){{/ifReleaseTag}}
### Enhancements
{{#issues}}
{{#labels}}
{{#ifMatches . "^(?!.*dependencies).*$"}}
{{#commits}}
{{#merge}}
{{#hasIssue}}
{{#hasLink}}
{{#ifMatches link ".*\/pull\/.*"}}
- [{{issue}}]({{link}}) {{title}} ({{commitDate}})
{{/ifMatches}}
{{/hasLink}}
{{^hasLink}}
- {{issue}} {{title}} ({{commitDate}})
{{/hasLink}}
{{/hasIssue}}
{{/merge}}
{{/commits}}
{{/ifMatches}}
{{/labels}}
{{/issues}}
{{#issues}}
{{^hasLabels}}
{{#commits}}
{{#merge}}
{{#hasIssue}}
{{#hasLink}}
{{#ifMatches link ".*\/pull\/.*"}}
- [{{issue}}]({{link}}) {{title}} ({{commitDate}})
{{/ifMatches}}
{{/hasLink}}
{{^hasLink}}
- {{issue}} {{title}} ({{commitDate}})
{{/hasLink}}
{{/hasIssue}}
{{/merge}}
{{/commits}}
{{/hasLabels}}
{{/issues}}
### Dependencies
{{#issues}}
{{#hasLabels}}
{{#labels}}
{{#ifMatches . "^dependencies.*"}}
{{#commits}}
{{#merge}}
{{#hasIssue}}
{{#hasLink}}
{{#ifMatches link ".*\/pull\/.*"}}
- [{{issue}}]({{link}}) {{title}} ({{commitDate}})
{{/ifMatches}}
{{/hasLink}}
{{^hasLink}}
- {{issue}} {{title}} ({{commitDate}})
{{/hasLink}}
{{/hasIssue}}
{{/merge}}
{{/commits}}
{{/ifMatches}}
{{/labels}}
{{/hasLabels}}
{{/issues}}
{{/tags}}