Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Commit b80ca61

Browse files
author
Benjamin E. Coe
authored
feat: output whether or not a release was created (#24)
1 parent f38e297 commit b80ca61

10 files changed

Lines changed: 1540 additions & 2625 deletions

File tree

dist/commit.hbs

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,56 @@
1-
* {{#if subject}} {{~subject}} {{~else}} {{~header}} {{~/if}}{{#if body}}
2-
{{body}}{{~/if}}
1+
* {{header}}
2+
3+
{{~!-- commit link --}} {{#if @root.linkReferences~}}
4+
([{{hash}}](
5+
{{~#if @root.repository}}
6+
{{~#if @root.host}}
7+
{{~@root.host}}/
8+
{{~/if}}
9+
{{~#if @root.owner}}
10+
{{~@root.owner}}/
11+
{{~/if}}
12+
{{~@root.repository}}
13+
{{~else}}
14+
{{~@root.repoUrl}}
15+
{{~/if}}/
16+
{{~@root.commit}}/{{hash}}))
17+
{{~else}}
18+
{{~hash}}
19+
{{~/if}}
20+
21+
{{~!-- commit references --}}
22+
{{~#if references~}}
23+
, closes
24+
{{~#each references}} {{#if @root.linkReferences~}}
25+
[
26+
{{~#if this.owner}}
27+
{{~this.owner}}/
28+
{{~/if}}
29+
{{~this.repository}}#{{this.issue}}](
30+
{{~#if @root.repository}}
31+
{{~#if @root.host}}
32+
{{~@root.host}}/
33+
{{~/if}}
34+
{{~#if this.repository}}
35+
{{~#if this.owner}}
36+
{{~this.owner}}/
37+
{{~/if}}
38+
{{~this.repository}}
39+
{{~else}}
40+
{{~#if @root.owner}}
41+
{{~@root.owner}}/
42+
{{~/if}}
43+
{{~@root.repository}}
44+
{{~/if}}
45+
{{~else}}
46+
{{~@root.repoUrl}}
47+
{{~/if}}/
48+
{{~@root.issue}}/{{this.issue}})
49+
{{~else}}
50+
{{~#if this.owner}}
51+
{{~this.owner}}/
52+
{{~/if}}
53+
{{~this.repository}}#{{this.issue}}
54+
{{~/if}}{{/each}}
55+
{{~/if}}
56+

dist/commit1.hbs

Lines changed: 10 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
1-
* {{header}}
1+
*{{#if scope}} **{{scope}}:**
2+
{{~/if}} {{#if subject}}
3+
{{~subject}}
4+
{{~else}}
5+
{{~header}}
6+
{{~/if}}
27

38
{{~!-- commit link --}} {{#if @root.linkReferences~}}
4-
([{{hash}}](
5-
{{~#if @root.repository}}
6-
{{~#if @root.host}}
7-
{{~@root.host}}/
8-
{{~/if}}
9-
{{~#if @root.owner}}
10-
{{~@root.owner}}/
11-
{{~/if}}
12-
{{~@root.repository}}
13-
{{~else}}
14-
{{~@root.repoUrl}}
15-
{{~/if}}/
16-
{{~@root.commit}}/{{hash}}))
9+
([{{shortHash}}]({{commitUrlFormat}}))
1710
{{~else}}
18-
{{~hash}}
11+
{{~shortHash}}
1912
{{~/if}}
2013

2114
{{~!-- commit references --}}
@@ -26,31 +19,12 @@
2619
{{~#if this.owner}}
2720
{{~this.owner}}/
2821
{{~/if}}
29-
{{~this.repository}}#{{this.issue}}](
30-
{{~#if @root.repository}}
31-
{{~#if @root.host}}
32-
{{~@root.host}}/
33-
{{~/if}}
34-
{{~#if this.repository}}
35-
{{~#if this.owner}}
36-
{{~this.owner}}/
37-
{{~/if}}
38-
{{~this.repository}}
39-
{{~else}}
40-
{{~#if @root.owner}}
41-
{{~@root.owner}}/
42-
{{~/if}}
43-
{{~@root.repository}}
44-
{{~/if}}
45-
{{~else}}
46-
{{~@root.repoUrl}}
47-
{{~/if}}/
48-
{{~@root.issue}}/{{this.issue}})
22+
{{~this.repository}}{{this.prefix}}{{this.issue}}]({{issueUrlFormat}})
4923
{{~else}}
5024
{{~#if this.owner}}
5125
{{~this.owner}}/
5226
{{~/if}}
53-
{{~this.repository}}#{{this.issue}}
27+
{{~this.repository}}{{this.prefix}}{{this.issue}}
5428
{{~/if}}{{/each}}
5529
{{~/if}}
5630

dist/header.hbs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
### {{#if @root.linkCompare~}}
2-
[{{version}}]({{compareUrlFormat}})
3-
{{~else}}
4-
{{~version}}
5-
{{~/if}}
6-
{{~#if title}} "{{title}}"
7-
{{~/if}}
8-
{{~#if date}} / {{date}}
9-
{{/if}}
1+
## {{#if isPatch~}} <small>
2+
{{~/if~}} {{version}}
3+
{{~#if title}} "{{title}}"
4+
{{~/if~}}
5+
{{~#if date}} ({{date}})
6+
{{~/if~}}
7+
{{~#if isPatch~}} </small>
8+
{{~/if}}
9+

dist/header1.hbs

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
## {{#if isPatch~}} <small>
2-
{{~/if~}} {{version}}
3-
{{~#if title}} "{{title}}"
4-
{{~/if~}}
5-
{{~#if date}} ({{date}})
6-
{{~/if~}}
7-
{{~#if isPatch~}} </small>
8-
{{~/if}}
9-
1+
{{#if isPatch~}}
2+
###
3+
{{~else~}}
4+
##
5+
{{~/if}} {{#if @root.linkCompare~}}
6+
[{{version}}]({{compareUrlFormat}})
7+
{{~else}}
8+
{{~version}}
9+
{{~/if}}
10+
{{~#if title}} "{{title}}"
11+
{{~/if}}
12+
{{~#if date}} ({{date}})
13+
{{/if}}

0 commit comments

Comments
 (0)