Introduction

The propose of the action is to publish the changelog and release notes for a release using Gren.

Usage

Configure Gren using .grenrc in your repository and run this action in GitHub actions workflow.

Example Gren File

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"
    }
}

Example Github Actions YML

  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"'