Automatically generate structured release notes directly from your GitHub issues and pull requests.
Categorize changes, highlight contributors, and maintain consistent release documentation โ all fully automated.
- Overview
- Motivation
- Quick Start
- How Release Notes Are Recognized
- Requirements
- Configuration
- Example Workflow
- Feature Tutorials
- Troubleshooting
- Developer & Contribution Guide
- License & Support
Release Notes Scrapper Action scans issues, pull requests, and commits to create categorized release notes for your project releases.
It groups changes by labels (e.g., โBugfixes ๐ โ, โNew Features ๐โ) and extracts relevant content from PR descriptions or CodeRabbit summaries.
- Fully automated release note generation
- Categorization by labels or issue hierarchy
- Built-in โService Chaptersโ to detect missing or incomplete release notes
- Configurable templates and icons
- Smart duplicate detection
Good documentation isnโt optional โ itโs your projectโs memory.
This Action was created to make structured release documentation effortless and consistent across teams.
๐ For the full background and design principles, see docs/motivation.md
Use the following steps to generate release notes. Version v1.4.0 requires Python 3.11 or newer, so configure it explicitly.
- uses: actions/setup-python@v7
with:
python-version: '3.11'
- name: Generate Release Notes
id: release_notes_scrapper
uses: AbsaOSS/generate-release-notes@v1.4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag-name: "v1.2.0"
chapters: |
- {"title": "Breaking Changes ๐ฅ", "label": "breaking-change"} # legacy single-label form
- {"title": "New Features ๐", "labels": "feature, enhancement"} # multi-label form (comma separated)
- {"title": "Bugfixes ๐ ", "labels": ["bug", "error"]} # multi-label form (YAML list)Example output snippet:
### New Features ๐
- #23 _Feature title_ author is @root assigned to @neo developed by @morpheus in #24
- Added support for multi-factor authentication.
### Bugfixes ๐
- PR: #25 _Copy not allowed_ author is @dependabot[bot] assigned to @smith developed by @smith
- File copy operation has been implemented.
#### Full Changelog
https://github.com/org/repo/compare/v1.1.0...v1.2.0Thatโs it โ the Action will:
- Fetch all closed issues and PRs from latest till now.
- Categorize them by labels.
- Extract release note text and contributors.
- Output a Markdown section ready for publishing.
The action looks for a section whose heading matches the first regex [Rr]elease [Nn]otes: (configurable via release-notes-title) in the issue body, then in each linked PR body. Every bullet line (-, *, or +) immediately below that heading becomes one release note entry.
Example โ issue or PR body:
Some intro text
Release Notes:
- Add user MFA enrollment flow
- Improve cache invalidation logic
Other commentary...Only the first matching section per body is used; content outside it is ignored. If no section is found in any linked PR body and CodeRabbit Integration is enabled, the AI-generated summary is used as a fallback.
For full details โ including the configurable title regex, skip-release-notes-labels, and edge cases โ see Release Notes Extraction.
To run this action successfully, make sure your environment meets the following requirements:
| Requirement | Description |
|---|---|
| GitHub Token | A GitHub token with permission to read issues, pull requests, and releases. Usually available as ${{ secrets.GITHUB_TOKEN }}. |
| Python 3.11+ | Version v1.4.0 requires Python 3.11 or newer. Set the interpreter explicitly with actions/setup-python because the runner's default Python may differ. |
| Repository Permissions | The action needs at least read access to issues and pull requests, and write access to create or update release drafts. |
| YAML Chapters Config | Each chapter must have a title, and a label or labels. Example: {"title": "Bugfixes ๐ ", "labels": "bug, fix"}. |
Only a few inputs are required to get started:
| Name | Description | Required | Default |
|---|---|---|---|
GITHUB_TOKEN |
GitHub token for authentication | Yes | - |
tag-name |
Target tag for the release; see Pre-release Tags | Yes | - |
chapters |
YAML multi-line list mapping titles to labels (supports label or labels) |
No | - |
verbose |
Enable detailed logging | No | false |
For the full input and output reference, see Configuration reference.
For how label โ chapter mapping and aggregation works, see Custom Chapters Behavior.
Important: In compare mode (
from-tag-nameprovided), bothtag-nameandfrom-tag-namemust exist as git tags in the repository. The action checks each tag via the GitHub API before calling compare and exits with a tag-specific error if either is absent.
tag-name and from-tag-name accept a tag with a pre-release suffix. The action keeps the suffix as given in every
tag name it uses, such as the Full Changelog link.
| Form | Examples |
|---|---|
| SemVer | v0.9.0-RC1, v1.0.0-alpha.1 |
| PEP 440 | v0.9.0rc1, v0.9.0a1, v0.9.0b2 |
- The
prereleaseoutput istruewhentag-namehas a pre-release suffix andfalseotherwise. Pass it to the step that drafts the release, as examples/release_draft.yml does. - Without
from-tag-name, the notes start at the newest published release that isn't a pre-release, so the notes of a final release after candidates cover everything since the previous final release. This relies on the release's GitHub pre-release flag, not on the tag name: a candidate published without the flag can become the start. - A hotfix suffix such as
v1.0.0-HF1counts as a pre-release, as SemVer has it. - AbsaOSS/version-tag-check, used in the example workflow, accepts
vX.Y.Z-RCnfrom v1.0.0 on, but not the PEP 440 formvX.Y.ZrcN.
For a complete manual-release workflow, see examples/release_draft.yml.
Each feature is documented separately โ click a name below to learn configuration, examples, and best practices.
| Feature | Scope | Description |
|---|---|---|
| Release Notes Extraction | Extraction | Core logic that scans descriptions to extract structured release notes (and optionally CodeRabbit summaries). |
| CodeRabbit Integration | Extraction | Optional extension to Release Notes Extraction, enabling AI-generated summaries when PR notes are missing. |
| Skip Labels | Filtering | Exclude issues/PRs carrying configured labels from all release notes. |
| Service Chapters | Quality & Warnings | Surfaces gaps: issues without PRs, unlabeled items, PRs without notes, etc. |
| Duplicity Handling | Quality & Warnings | Marks duplicate lines when the same issue appears in multiple chapters. |
| Tag Range Selection | Time Range | Chooses scope via tag-name/from-tag-name. |
| Compare Mode | Time Range | Graph-based commit selection via repo.compare() โ correct for branching release histories (maintenance + develop in parallel). |
| Date Selection | Time Range | Chooses scope via timestamps (published-at vs created-at). |
| Custom Row Formats | Formatting & Presentation | Controls row templates and placeholders ({number}, {title}, {developers}, โฆ). |
| Custom Chapters | Formatting & Presentation | Maps labels to chapter headings; aggregates multiple labels under one title. |
| Issue Hierarchy Support | Formatting & Presentation | Displays issue โ sub-issue relationships. |
| Verbose Mode | Diagnostics & Technical | Adds detailed logs for debugging. |
Category legend (keep it consistent across docs)
- Extraction โ how notes are gathered (core behavior).
- Filtering โ what gets included/excluded.
- Quality & Warnings โ health checks that keep releases clean.
- Time Range โ how the release window is determined.
- Formatting & Presentation โ how lines look.
- Diagnostics & Technical โ tooling, logs, debug.
Common questions and quick pointers.
| Symptom | Likely Cause | Where to Read More |
|---|---|---|
| Issue/PR missing from a chapter | Skip label applied | Skip Labels |
| Issue missing but its PR appears | No change increment detected for issue (no merged PR linkage) | Release Notes Extraction |
| Chapter heading is empty | No qualifying records OR duplicates suppressed | Custom Chapters |
| Expected duplicate not shown | duplicity-scope excludes that chapter category |
Duplicity Handling |
| CodeRabbit section ignored | Manual release notes section already present OR support disabled | CodeRabbit Integration |
More Q&A: see the Custom Chapters FAQ.
We love community contributions!
Typical contributions include:
- Fixing bugs or edge cases
- Improving documentation or examples
- Adding new configuration options
This project is licensed under the Apache License 2.0. See the LICENSE file for full terms.
Thanks to all contributors and teams who helped evolve this Action. Your feedback drives continuous improvement and automation quality.