Skip to content

Commit

Permalink
chore(release): use current tag as changelog entry title
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
  • Loading branch information
unicornware committed Aug 18, 2022
1 parent 39f11da commit 376510f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# https://prettier.io/docs/en/ignore.html

# DIRECTORIES & FILES
**/*.hbs
**/*.md
**/*.snap
**/.gitignore
Expand Down
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{
"[handlebars]": {
"editor.defaultFormatter": "Greenbyte.handlebars-preview",
"editor.rulers": [100],
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 100,
"rewrap.wrappingColumn": 100
},
"[ignore]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
Expand Down Expand Up @@ -54,7 +61,6 @@
"**/.DS_Store": true,
"**/yarn.lock": true
},

"git.autofetch": true,
"git.enableSmartCommit": true,
"markdownlint.ignore": "./.markdownlintignore",
Expand Down
2 changes: 2 additions & 0 deletions changelog.config.cts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import type {
} from 'conventional-changelog-writer'
import type { Commit, CommitRaw } from 'conventional-commits-parser'
import dateformat from 'dateformat'
import fs from 'node:fs'
import pkg from './package.json'

/**
Expand Down Expand Up @@ -201,6 +202,7 @@ const config: Config = {
previousTag
}
},
headerPartial: fs.readFileSync('templates/changelog/header.hbs', 'utf8'),
ignoreReverted: false
}
}
Expand Down
7 changes: 7 additions & 0 deletions templates/changelog/header.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## {{#if @root.linkCompare~}}
[{{currentTag}}]({{host}}/{{owner}}/{{repository}}/compare/{{previousTag}}...{{currentTag}})
{{~else}}
{{~currentTag}}
{{~/if}}
{{~#if title}} "{{title}}"{{~/if}}
{{~#if date}} ({{date}}){{/if}}

0 comments on commit 376510f

Please sign in to comment.