Skip to content

Commit

Permalink
add build
Browse files Browse the repository at this point in the history
  • Loading branch information
hennejg committed May 11, 2021
1 parent 362cdd0 commit 6d752f6
Show file tree
Hide file tree
Showing 18 changed files with 108 additions and 103 deletions.
31 changes: 3 additions & 28 deletions dist/commit1.hbs
Original file line number Diff line number Diff line change
@@ -1,30 +1,5 @@
*{{#if scope}} **{{scope}}:**
{{~/if}} {{#if subject}}
{{~subject}}
{{~else}}
{{~header}}
{{~/if}}
* {{#if shortDesc}}{{shortDesc}}{{else}}{{header}}{{/if}}

{{~!-- commit link --}}{{~#if hash}} {{#if @root.linkReferences~}}
([{{shortHash}}]({{commitUrlFormat}}))
{{~else}}
{{~shortHash}}
{{~/if}}{{~/if}}

{{~!-- commit references --}}
{{~#if references~}}
, closes
{{~#each references}} {{#if @root.linkReferences~}}
[
{{~#if this.owner}}
{{~this.owner}}/
{{~/if}}
{{~this.repository}}{{this.prefix}}{{this.issue}}]({{issueUrlFormat}})
{{~else}}
{{~#if this.owner}}
{{~this.owner}}/
{{~/if}}
{{~this.repository}}{{this.prefix}}{{this.issue}}
{{~/if}}{{/each}}
{{~/if}}
{{~!-- commit hash --}} {{#if @root.linkReferences}}([{{shortHash}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}/{{@root.commit}}/{{hash}})){{else}}{{shortHash~}}{{/if}}

{{~!-- commit references --}}{{#if references}}, closes{{~#each references}} {{#if @root.linkReferences}}[{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}#{{this.issue}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if this.repository}}{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}{{else}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}{{/if}}/{{@root.issue}}/{{this.issue}}){{else}}{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}#{{this.issue}}{{/if}}{{/each}}{{/if}}
10 changes: 7 additions & 3 deletions dist/commit4.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{{#if type}}**{{type}}** {{/if}}{{message}}
* {{#if shortDesc}}{{shortDesc}}{{else}}{{header}}{{/if}}
{{#if body}}

{{~!-- commit hash --}} {{#if @root.linkReferences}}([{{shortHash}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}/{{@root.commit}}/{{hash}})){{else}}{{shortHash~}}{{/if}}
{{body}}

{{~!-- commit references --}}{{#if references}}, closes{{~#each references}} {{#if @root.linkReferences}}[{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}#{{this.issue}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if this.repository}}{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}{{else}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}{{/if}}/{{@root.issue}}/{{this.issue}}){{else}}{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}#{{this.issue}}{{/if}}{{/each}}{{/if}}
{{/if}}
{{!-- commit references --}}{{#if references}}
Closes{{~#each references}} {{#if @root.linkReferences}}[{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}#{{this.issue}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if this.repository}}{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}{{else}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}{{/if}}/{{@root.issue}}/{{this.issue}}){{else}}{{this.repository}}#{{this.issue}}{{/if}}{{/each}}
{{/if}}
31 changes: 28 additions & 3 deletions dist/commit5.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
* {{#if shortDesc}}{{shortDesc}}{{else}}{{header}}{{/if}}
*{{#if scope}} **{{scope}}:**
{{~/if}} {{#if subject}}
{{~subject}}
{{~else}}
{{~header}}
{{~/if}}

{{~!-- commit hash --}} {{#if @root.linkReferences}}([{{shortHash}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}/{{@root.commit}}/{{hash}})){{else}}{{shortHash~}}{{/if}}
{{~!-- commit link --}}{{~#if hash}} {{#if @root.linkReferences~}}
([{{shortHash}}]({{commitUrlFormat}}))
{{~else}}
{{~shortHash}}
{{~/if}}{{~/if}}

{{~!-- commit references --}}
{{~#if references~}}
, closes
{{~#each references}} {{#if @root.linkReferences~}}
[
{{~#if this.owner}}
{{~this.owner}}/
{{~/if}}
{{~this.repository}}{{this.prefix}}{{this.issue}}]({{issueUrlFormat}})
{{~else}}
{{~#if this.owner}}
{{~this.owner}}/
{{~/if}}
{{~this.repository}}{{this.prefix}}{{this.issue}}
{{~/if}}{{/each}}
{{~/if}}

{{~!-- commit references --}}{{#if references}}, closes{{~#each references}} {{#if @root.linkReferences}}[{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}#{{this.issue}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if this.repository}}{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}{{else}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}{{/if}}/{{@root.issue}}/{{this.issue}}){{else}}{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}#{{this.issue}}{{/if}}{{/each}}{{/if}}
2 changes: 1 addition & 1 deletion dist/commit6.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* {{#if shortDesc}}{{shortDesc}}{{else}}{{header}}{{/if}}
{{#if type}}**{{type}}** {{/if}}{{message}}

{{~!-- commit hash --}} {{#if @root.linkReferences}}([{{shortHash}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}/{{@root.commit}}/{{hash}})){{else}}{{shortHash~}}{{/if}}

Expand Down
8 changes: 2 additions & 6 deletions dist/commit7.hbs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
* {{#if shortDesc}}{{shortDesc}}{{else}}{{header}}{{/if}}
{{#if body}}

{{body}}
{{~!-- commit hash --}} {{#if @root.linkReferences}}([{{shortHash}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}/{{@root.commit}}/{{hash}})){{else}}{{shortHash~}}{{/if}}

{{/if}}
{{!-- commit references --}}{{#if references}}
Closes{{~#each references}} {{#if @root.linkReferences}}[{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}#{{this.issue}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if this.repository}}{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}{{else}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}{{/if}}/{{@root.issue}}/{{this.issue}}){{else}}{{this.repository}}#{{this.issue}}{{/if}}{{/each}}
{{/if}}
{{~!-- commit references --}}{{#if references}}, closes{{~#each references}} {{#if @root.linkReferences}}[{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}#{{this.issue}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if this.repository}}{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}{{else}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}{{/if}}/{{@root.issue}}/{{this.issue}}){{else}}{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}#{{this.issue}}{{/if}}{{/each}}{{/if}}
11 changes: 11 additions & 0 deletions dist/footer1.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{#if noteGroups}}
{{#each noteGroups}}

### {{title}}

{{#each notes}}
* {{#if commit.scope}}{{commit.scope}}: {{/if}}{{text}}
{{/each}}
{{/each}}

{{/if}}
11 changes: 0 additions & 11 deletions dist/footer2.hbs
Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
{{#if noteGroups}}
{{#each noteGroups}}

### {{title}}

{{#each notes}}
* {{#if commit.scope}}{{commit.scope}}: {{/if}}{{text}}
{{/each}}
{{/each}}

{{/if}}
14 changes: 1 addition & 13 deletions dist/header1.hbs
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
{{#if isPatch~}}
###
{{~else~}}
##
{{~/if}} {{#if @root.linkCompare~}}
[{{version}}]({{compareUrlFormat}})
{{~else}}
{{~version}}
{{~/if}}
{{~#if title}} "{{title}}"
{{~/if}}
{{~#if date}} ({{date}})
{{/if}}
{{#if isPatch}}##{{else}}#{{/if}} {{#if @root.linkCompare}}[{{version}}]({{@root.host}}/{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}/compare/{{previousTag}}...{{currentTag}}){{else}}{{version}}{{/if}}{{#if title}} "{{title}}"{{/if}}{{#if date}} ({{date}}){{/if}}
3 changes: 2 additions & 1 deletion dist/header4.hbs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
{{#if isPatch}}##{{else}}#{{/if}} {{#if @root.linkCompare}}[{{version}}]({{@root.host}}/{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}/compare/{{previousTag}}...{{currentTag}}){{else}}{{version}}{{/if}}{{#if title}} "{{title}}"{{/if}}{{#if date}} ({{date}}){{/if}}
{{#if version}}{{#if @root.linkCompare}}[{{version}}]({{@root.host}}/{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}/compare/{{previousTag}}...{{currentTag}}){{else}}{{version}}{{/if}} / {{/if}}{{date}}
===================
14 changes: 13 additions & 1 deletion dist/header5.hbs
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
{{#if isPatch}}##{{else}}#{{/if}} {{#if @root.linkCompare}}[{{version}}]({{@root.host}}/{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}/compare/{{previousTag}}...{{currentTag}}){{else}}{{version}}{{/if}}{{#if title}} "{{title}}"{{/if}}{{#if date}} ({{date}}){{/if}}
{{#if isPatch~}}
###
{{~else~}}
##
{{~/if}} {{#if @root.linkCompare~}}
[{{version}}]({{compareUrlFormat}})
{{~else}}
{{~version}}
{{~/if}}
{{~#if title}} "{{title}}"
{{~/if}}
{{~#if date}} ({{date}})
{{/if}}
3 changes: 1 addition & 2 deletions dist/header7.hbs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
{{#if version}}{{#if @root.linkCompare}}[{{version}}]({{@root.host}}/{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}/compare/{{previousTag}}...{{currentTag}}){{else}}{{version}}{{/if}} / {{/if}}{{date}}
===================
{{#if isPatch}}##{{else}}#{{/if}} {{#if @root.linkCompare}}[{{version}}]({{@root.host}}/{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}/compare/{{previousTag}}...{{currentTag}}){{else}}{{version}}{{/if}}{{#if title}} "{{title}}"{{/if}}{{#if date}} ({{date}}){{/if}}
39 changes: 22 additions & 17 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5081,9 +5081,9 @@ const readFile = Q.denodeify(__webpack_require__(747).readFile)
const resolve = __webpack_require__(622).resolve

module.exports = Q.all([
readFile(__webpack_require__.ab + "template5.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "header5.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "commit5.hbs", 'utf-8')
readFile(__webpack_require__.ab + "template7.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "header7.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "commit7.hbs", 'utf-8')
])
.spread((template, header, commit) => {
const writerOpts = getWriterOpts()
Expand Down Expand Up @@ -6815,9 +6815,9 @@ const readFile = Q.denodeify(__webpack_require__(747).readFile)
const resolve = __webpack_require__(622).resolve

module.exports = Q.all([
readFile(__webpack_require__.ab + "template4.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "header4.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "commit4.hbs", 'utf-8')
readFile(__webpack_require__.ab + "template6.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "header6.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "commit6.hbs", 'utf-8')
])
.spread((template, header, commit) => {
const writerOpts = getWriterOpts()
Expand Down Expand Up @@ -44934,10 +44934,10 @@ module.exports = function (config) {
})

return Q.all([
readFile(__webpack_require__.ab + "template1.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "header1.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "commit1.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "footer1.hbs", 'utf-8')
readFile(__webpack_require__.ab + "template5.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "header5.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "commit5.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "footer2.hbs", 'utf-8')
])
.spread((template, header, commit, footer) => {
const writerOpts = getWriterOpts(config)
Expand Down Expand Up @@ -48699,9 +48699,9 @@ const readFile = Q.denodeify(__webpack_require__(747).readFile)
const resolve = __webpack_require__(622).resolve

module.exports = Q.all([
readFile(__webpack_require__.ab + "template7.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "header7.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "commit7.hbs", 'utf-8')
readFile(__webpack_require__.ab + "template4.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "header4.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "commit4.hbs", 'utf-8')
])
.spread((template, header, commit) => {
const writerOpts = getWriterOpts()
Expand Down Expand Up @@ -53114,6 +53114,11 @@ function run() {
}
core.debug(`Pushing new tag to the repo`);
yield octokit.git.createRef(Object.assign(Object.assign({}, github_1.context.repo), { ref: `refs/tags/${newTag}`, sha: GITHUB_SHA }));
// fetch tags (again)
core.info("Fetching generated tag");
yield exec("git fetch --tags");
// checkout new tag
yield exec("git checkout 'refs/tags/${newTag}'");
}
catch (error) {
core.setFailed(error.message);
Expand Down Expand Up @@ -59638,10 +59643,10 @@ const readFile = Q.denodeify(__webpack_require__(747).readFile)
const resolve = __webpack_require__(622).resolve

module.exports = Q.all([
readFile(__webpack_require__.ab + "template6.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "header6.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "commit6.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "footer2.hbs", 'utf-8')
readFile(__webpack_require__.ab + "template1.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "header1.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "commit1.hbs", 'utf-8'),
readFile(__webpack_require__.ab + "footer1.hbs", 'utf-8')
])
.spread((template, header, commit, footer) => {
const writerOpts = getWriterOpts()
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

15 changes: 4 additions & 11 deletions dist/template1.hbs
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
{{> header}}

{{#if noteGroups}}
{{#each noteGroups}}

### ⚠ {{title}}

{{#each notes}}
* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}}
{{/each}}
{{/each}}
{{/if}}
{{#each commitGroups}}

{{#if title}}
Expand All @@ -19,5 +9,8 @@
{{#each commits}}
{{> commit root=@root}}
{{/each}}

{{/each}}

{{> footer}}


1 change: 0 additions & 1 deletion dist/template4.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@
{{/each}}



14 changes: 11 additions & 3 deletions dist/template5.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{{> header}}

{{#if noteGroups}}
{{#each noteGroups}}

### ⚠ {{title}}

{{#each notes}}
* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}}
{{/each}}
{{/each}}
{{/if}}
{{#each commitGroups}}

{{#if title}}
Expand All @@ -9,7 +19,5 @@
{{#each commits}}
{{> commit root=@root}}
{{/each}}
{{/each}}



{{/each}}
1 change: 0 additions & 1 deletion dist/template6.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@
{{/each}}
{{/each}}

{{> footer}}


1 change: 1 addition & 0 deletions dist/template7.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
{{/each}}



0 comments on commit 6d752f6

Please sign in to comment.