Skip to content

Commit

Permalink
build: add convco settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Jul 8, 2022
1 parent 72a18ab commit 4b1d72c
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .convco/template/commit.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
*
{{~#if scope}} **{{scope}}:**
{{~/if}}
{{#if references}}
{{~#each references}} {{#if @root.linkReferences~}}
[{{this.prefix}}{{this.issue}}]({{issueUrlFormat}})
{{~else}}{{this.prefix}}{{this.issue}}
{{~/if}}{{/each}}
{{~/if}}
{{subject}}
{{~#if hash}} {{#if @root.linkReferences}}([{{shortHash}}]({{commitUrlFormat}})){{else}}({{shortHash}})
{{~/if}}
{{~/if}}

Empty file added .convco/template/footer.hbs
Empty file.
2 changes: 2 additions & 0 deletions .convco/template/header.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

{{#if isPatch}}###{{else}}##{{/if}}{{#if @root.linkCompare}} [{{version}}]({{compareUrlFormat}}){{else}} {{version}}{{/if}}{{#if title}} "{{title}}"{{/if}}{{#if date}} ({{date}}){{/if}}
20 changes: 20 additions & 0 deletions .convco/template/template.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{> header}}
{{#if noteGroups}}{{#each noteGroups}}

### ⚠ {{title}}

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

{{#each commitGroups}}
{{#if title}}{{#if @root.isPatch}}
####{{else}}
###{{/if}} {{title}}{{/if}}

{{#each commits}}
{{> commit root=@root}}
{{/each}}
{{/each}}
1 change: 1 addition & 0 deletions .versionrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
template: ".convco/template"

0 comments on commit 4b1d72c

Please sign in to comment.