prepare-release-action¶
Automates preparation of a release pull request and changelog generation prior to final tagging & publishing.
Purpose¶
This GitHub Action:
- Ensures (or creates) an open release PR (pattern:
release/<version>). - Synchronizes the release branch from a source branch (default:
development). - Collects merged PRs since last tag into a structured changelog section.
- Optionally generates an AI summary (if
openai-api-keyprovided). - Commits changelog changes and sets action outputs (
version,branch,pr-number).
High-Level Flow¶
- Build context from inputs.
GitHubServicefinds or creates release PR.- Branch sync (fetch & merge from source branch).
- List merged PRs since last tag.
ChangelogServicebuilds & inserts section.- Optional AI summarization.
- Commit/push CHANGELOG diff.
- Outputs exposed by
index.ts.
Quick Links¶
- Usage: Action YAML, inputs & outputs.
- Architecture: Components, sequence, versioning, extensibility.
- Development: Build, test, lint, roadmap.
- ADRs: Decision history.
Navigate using the sidebar tabs.