The propose of the action is to publish the changelog and release notes for a release using Gren.
Configure Gren using .grenrc
in your repository and run this action in GitHub actions workflow.
module.exports = {
"dataSource": "issues",
"prefix": "",
"onlyMilestones": false,
"ignoreIssuesWith": [
"duplicate",
"invalid",
"question",
"wontfix"
],
"groupBy": {
"β Enhancements": ["β Enhancement"],
"π§ Native Changes (C++)": [ "π§ Native" ],
"β Build & DevOps": ["β DevOps" ],
"π Bugs Fixed:": ["π Bug"],
"π§ͺ Testing and Samples": ["π§ͺ Testing"],
"π Documentation Improvements:": ["π Documentation" ]
},
"changelogFilename": "CHANGELOG.md",
"template": {
commit: ({ message, url, author, name }) => `- [${message}](${url}) - ${author ? `@${author}` : name}`,
issue: "- [{{text}}]({{url}}) {{name}}",
label: "[**{{label}}**]",
noLabel: "closed",
group: "\n#### {{heading}}\n",
changelogTitle: "# Changelog\n\n",
release: "## {{release}} ({{date}})\n{{body}}",
releaseSeparator: "\n---\n\n"
}
}
uses: FileOnQ/action-release-notes@v1.2
with:
token : GITHUB_TOKEN_THAT_HAS_PERMISSIONS
username : USERNAME
organization : 'FileOnQ'
repository : 'Imaging.Heif'
version_number : PACKAGE_VERSION
options: '--override --ignore-tags-with="preview"'