diff --git a/.convco/template/commit.hbs b/.convco/template/commit.hbs new file mode 100644 index 0000000..8dd1ab3 --- /dev/null +++ b/.convco/template/commit.hbs @@ -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}} + diff --git a/.convco/template/footer.hbs b/.convco/template/footer.hbs new file mode 100644 index 0000000..e69de29 diff --git a/.convco/template/header.hbs b/.convco/template/header.hbs new file mode 100644 index 0000000..a4659a6 --- /dev/null +++ b/.convco/template/header.hbs @@ -0,0 +1,2 @@ + +{{#if isPatch}}###{{else}}##{{/if}}{{#if @root.linkCompare}} [{{version}}]({{compareUrlFormat}}){{else}} {{version}}{{/if}}{{#if title}} "{{title}}"{{/if}}{{#if date}} ({{date}}){{/if}} \ No newline at end of file diff --git a/.convco/template/template.hbs b/.convco/template/template.hbs new file mode 100644 index 0000000..de02597 --- /dev/null +++ b/.convco/template/template.hbs @@ -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}} \ No newline at end of file diff --git a/.versionrc b/.versionrc new file mode 100644 index 0000000..182a887 --- /dev/null +++ b/.versionrc @@ -0,0 +1 @@ +template: ".convco/template" \ No newline at end of file