Skip to content

Commit

Permalink
ci: fixup convco templates
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Jan 26, 2024
1 parent a6d0454 commit cdd734d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
21 changes: 9 additions & 12 deletions .convco/template/commit.hbs
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
*
{{~#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}}
{{#word-wrap}}
*{{#if scope}} **{{scope}}:**{{/if}} {{subject}}
{{~#if hash}} {{#if @root.linkReferences}}([{{shortHash}}]({{commitUrlFormat}})){{else}}({{shortHash}}){{/if}}{{/if}}
{{~#if references}}, closes
{{~#each references}} {{#if @root.linkReferences~}}
[{{this.prefix}}{{this.issue}}]({{issueUrlFormat}})
{{~else}}{{this.prefix}}{{this.issue}}
{{~/if}}{{/each}}
{{~/if}}

{{/word-wrap}}
2 changes: 1 addition & 1 deletion .convco/template/header.hbs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

{{#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}}]({{compareUrlFormat}}){{else}} {{version}}{{/if}}{{#if title}} "{{title}}"{{/if}}{{#if date}} ({{date}}){{/if}}
7 changes: 3 additions & 4 deletions .convco/template/template.hbs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{{> header}}
{{#if noteGroups}}{{#each noteGroups}}

### ⚠ {{title}}
### ⚠ {{title}}

{{#each notes}}* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{#each text}}{{this}}
{{~/each}}
{{#each notes}}* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{this.text}}
{{/each}}
{{/each}}
{{/if}}
Expand All @@ -17,4 +16,4 @@
{{#each commits}}
{{> commit root=@root}}
{{/each}}
{{/each}}
{{/each}}

0 comments on commit cdd734d

Please sign in to comment.