[build] generate release notes from previous minor release tag#17449
Conversation
Review Summary by QodoGenerate release notes from previous minor release tag
WalkthroughsDescription• Generates release notes from previous minor release tag • Filters releases to only consider minor versions (x.y.0) • Replaces automatic release notes generation with targeted API call • Ensures patch releases generate correct changelog content Diagramflowchart LR
A["Release workflow"] --> B["Query previous minor release"]
B --> C["Filter for x.y.0 pattern"]
C --> D["Generate notes via API"]
D --> E["Create draft release"]
File Changes1. .github/workflows/release.yml
|
Code Review by Qodo
1. PREV tag not validated
|
There was a problem hiding this comment.
Pull request overview
Updates the release workflow to generate GitHub release notes against the previous minor release tag (e.g., selenium-X.Y.0) rather than relying on ncipollo/release-action's automatic generation, which previously used the most recent prior tag (incorrect for patch releases or after the nightly tag was removed).
Changes:
- New workflow step queries
gh release list, picks the most recentselenium-X.Y.0tag, and calls the GitHubreleases/generate-notesAPI with that asprevious_tag_name. - Concatenates
release_header.mdwith the generated notes intorelease_body.md. ncipollo/release-actionnow usesbodyFile: release_body.mdinstead ofbodyFile: release_header.md+generateReleaseNotes: true.
Last release I changed when nightly tag is removed, so release notes generated between nightly tag and release tag. This indicates it would also give the wrong list if there is a patch release.
💥 What does this PR do?
🔧 Implementation Notes
🤖 AI assistance
🔄 Types of changes