Skip to content

Commit

Permalink
chore: update changelog templates
Browse files Browse the repository at this point in the history
  • Loading branch information
enesozturk committed Feb 26, 2021
1 parent 01cb182 commit f3eac2e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 48 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-hold-menu",
"version": "0.0.5",
"version": "0.0.4",
"description": "A performant, easy to use hold to open context menu for React Native powered by Reanimated.",
"main": "lib/commonjs/index.js",
"module": "lib/module/index.js",
Expand Down
39 changes: 0 additions & 39 deletions release-template.hbs

This file was deleted.

14 changes: 10 additions & 4 deletions templates/changelog-template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,29 @@

{{#each releases}}

{{#if href}}
## [{{title}}]({{href}}){{#if tag}} - {{isoDate}}{{/if}}
{{else}}
## {{title}}{{#if tag}} - {{isoDate}}{{/if}}
{{/if}}

{{#if summary}}
{{summary}}
{{/if}}

{{#commit-list merges commits heading="#### Features" subject="feat: "}}
{{#commit-list commits heading="#### Features" message="feat: "}}
- {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})).
{{/commit-list}}

{{#commit-list merges commits heading="#### Improvements" subject="(chore|refactor|style): "}}
{{#commit-list commits heading="#### Improvements" message="(chore|refactor|style): "}}
- {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})).
{{/commit-list}}

{{#commit-list merges commits heading="#### Fixes" subject="fix: "}}
{{#commit-list commits heading="#### Fixes" message="fix: "}}
- {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})).
{{/commit-list}}

{{#commit-list merges commits heading="#### Documentations" subject="docs: "}}
{{#commit-list commits heading="#### Documentations" message="docs: "}}
- {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})).
{{/commit-list}}

Expand Down
8 changes: 4 additions & 4 deletions templates/release-template.hbs
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{{#each releases}}
{{#if @first}}
{{#commit-list merges commits heading="#### Features" subject="feat: "}}
{{#commit-list commits heading="#### Features" message="feat: "}}
- {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})).
{{/commit-list}}

{{#commit-list merges commits heading="#### Improvements" subject="(chore|refactor|style): "}}
{{#commit-list commits heading="#### Improvements" message="(chore|refactor|style): "}}
- {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})).
{{/commit-list}}

{{#commit-list merges commits heading="#### Fixes" subject="fix: "}}
{{#commit-list commits heading="#### Fixes" message="fix: "}}
- {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})).
{{/commit-list}}

{{#commit-list merges commits heading="#### Documentations" subject="docs: "}}
{{#commit-list commits heading="#### Documentations" message="docs: "}}
- {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})).
{{/commit-list}}
{{/if}}
Expand Down

0 comments on commit f3eac2e

Please sign in to comment.