-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: change changelog commit template to modified conventionalcommits
- Loading branch information
1 parent
b5067a4
commit dea4a25
Showing
2 changed files
with
45 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,49 @@ | ||
{{#each bodyLines}} | ||
{{!-- | ||
Copy of https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-conventionalcommits/templates/commit.hbs | ||
{{this}} | ||
The following have been replaced: | ||
{{/each}} | ||
- `commitUrlFormat` with `{{@root.host}}/{{@root.owner}}/{{@root.repository}}/commit/{{hash}})` | ||
- `issueUrlFormat` with `{{@root.host}}/{{@root.owner}}/{{@root.repository}}/issues/{{this.id}}` | ||
{{#each notes}} | ||
As they won't be replaced when overriding the commitPartial | ||
--}} | ||
*{{#if scope}} **{{scope}}:** | ||
{{~/if}} {{#if subject}} | ||
{{~subject}} | ||
{{~else}} | ||
{{~header}} | ||
{{~/if}} | ||
|
||
**BREAKING CHANGE**: {{text}} | ||
{{~!-- commit link --}}{{~#if hash}} {{#if @root.linkReferences~}} | ||
([{{shortHash}}]({{@root.host}}/{{@root.owner}}/{{@root.repository}}/commit/{{hash}})) | ||
{{~else}} | ||
{{~shortHash}} | ||
{{~/if}}{{~/if}} | ||
|
||
{{/each}} | ||
{{~!-- commit references --}} | ||
{{~#if references~}} | ||
, closes | ||
{{~#each references}} {{#if @root.linkReferences~}} | ||
[ | ||
{{~#if this.owner}} | ||
{{~this.owner}}/ | ||
{{~/if}} | ||
{{~this.repository}}{{this.prefix}}{{this.issue}}]({{@root.host}}/{{@root.owner}}/{{@root.repository}}/issues/{{this.id}}) | ||
{{~else}} | ||
{{~#if this.owner}} | ||
{{~this.owner}}/ | ||
{{~/if}} | ||
{{~this.repository}}{{this.prefix}}{{this.issue}} | ||
{{~/if}}{{/each}} | ||
{{~/if}} | ||
{{!-- End of copy --}} | ||
|
||
{{!-- Start of custom additions --}} | ||
{{#each bodyLines}} | ||
|
||
{{this}} | ||
{{/each}}{{#each notes}} | ||
|
||
**BREAKING CHANGE**: {{text}} | ||
{{/each}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters