Define the window of work (issues, PRs, commits) to include in the release notes by specifying current and optional previous tags. Ensures only changes since the chosen baseline are reported.
- Required input
tag-namesets the target release tag (e.g.v1.6.0).- Important: this tag must exist in the repository; otherwise, the action fails.
- Optional input
from-tag-namesets an explicit starting tag. When provided, the action fetches that release directly. - If
from-tag-nameis NOT set, the action picks the latest published, non-draft, non-prerelease tag by semantic version ordering (may differ from most recently created chronologically if versions were pushed out-of-order).- If no prior release exists (first release), no filtering is applied; all issues/PRs are considered.
- Tag normalization: both
1.6.0andv1.6.0are treated asv1.6.0internally. - The time boundary ("since" value) is derived from the selected previous release timestamp (see Date Selection for which timestamp field is used).
- name: Generate Release Notes
id: release_notes_scrapper
uses: AbsaOSS/generate-release-notes@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag-name: "v1.6.0" # current release tag
from-tag-name: "v1.5.0" # optional; if omitted semantic latest prior release is used
chapters: |
- {"title": "Features", "label": "feature"}
- {"title": "Fixes", "label": "bug"}### Features
- #350 _Add MFA enrollment API_ developed by @alice in #355
#### Full Changelog
https://github.com/org/repo/compare/v1.5.0...v1.6.0(The compare URL reflects both from-tag-name and tag-name.)
- Compare Mode – activated automatically when
from-tag-nameis set; explains why graph-based selection is needed for branching histories and how it works internally. - Date Selection – defines which timestamp of the previous release becomes the cutoff.
- Service Chapters – uses the same time window to assess gaps.
- Release Notes Extraction – only processes PRs/issues within the computed window.