github-release-notes
github-release-notes copied to clipboard
`template` doesn't impact output for some fields
We have a file .grenrc.js generated from gren int
After adding a template object it looks like this:
module.exports = {
"dataSource": "milestones",
"prefix": "n",
"groupBy": "label",
"milestoneMatch": "{{tag_name}}",
"changelogFilename": "CHANGELOG.md",
"template": {
commit: ({ message, url, author, name }) => `- [${message}](${url}) - ${author ? `@${author}` : name}`,
issue: "- {{labels}} {{name}} [{{text}}]({{url}})",
label: "[**{{label}}**]",
noLabel: "closed",
group: "\n#### {{heading}}\n",
changelogTitle: "# Changelog\n\n",
release: "## {{release}} ({{date}})\n{{body}}",
releaseSeparator: "\n---\n\n"
}
}
When I change values for issue, label or group, the CHANGELOG.md file is still generated from the original template. Changing values for release and changelogTitle do impact though.
Weird. I'll have a look.
What command are you running?
@alexcanessa
yarn gren changelog
while having the script in package.json
"gren": "node ./node_modules/github-release-notes/bin/gren.js"
@Hatko could you try to run it with --debug ?
@alexcanessa the output is:
Options:
Tags: empty
Prefix: empty
Template: [object Object]
Prerelease: false
Generate: false
Quiet: false
Override: true
Debug: true
Ignore labels: empty
Ignore issues with: empty
Ignore commits with: empty
Group by: label
Milestone match: {{tag_name}}
Changelog filename: CHANGELOG.md
Username: connectedcars
Repo: mobile-app
Token: XXXXXXXXXXX (removed the token)
Limit: 50
Data source: milestones
Include messages: commits
Ignore tags with: empty
🤖 - Generate changelog file:
===================================
✔ Releases found: 1
✔ Changelog created in