GitHub Actions step to generate an automatic release note based on the PR's merged since the last release
This step is based on some definitions that you must follow in your workflow:
- Pull request title need to be in this format
[TYPE][JIRA-TASK] Description
Eg:[FEATURE][TEAM-123] Some new feature
- Every release must be registered on its GitHub repository
- Every version must have a Git TAG indicating it
Once triggered, this step will proceed with:
- Detect the last release made in the repository and extract its version
- Retrieve the SHA id for the TAG commit of this version
- Retrieve the SHA id for the TAG commit of the version to be published
- Get all Pull Requests merged between these two commits
- Parse their PR titles
- Produce a report with the tasks
The recommended way to use this step is to put it in a workflow triggered when you are closing a release. Besides the rules mentioned above, it must run AFTER the release version is tagged on the repo.
- release_version: Define the version that is being published now. Must be informed without the prefix. (Required)
- tag_prefix: Indicates whether your tag names have a prefix like "v" in v6.3.2. (Optional) (Default: "")
- reporter_mode: Define how the output must be formatted. Possible values are MARKDOWN, HTML, and TEXT. (Optional) (Default: "MARKDOWN")
- notes: The formatted release notes produced by the step