-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix release notes generator to exclude PRs from previous release beta and patches #5758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for esphome ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for esphome ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes a bug in the release notes generator where pull requests from previous release beta versions were incorrectly appearing in new release notes due to the backmerge workflow between beta and dev branches.
Key Changes:
- Refactored PR collection logic to use a generic
_collect_prs_from_tags()helper method - Renamed
_get_patch_release_prs()to_get_previous_release_prs()and extended it to collect PRs from both beta releases and patch releases - Updated
discover_prs()to exclude all PRs from the previous release cycle (betas + patches), not just patches
✅ Deploy Preview for esphome ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Description:
Fixes a bug in the release notes generator where PRs that were already included in the previous release cycle would incorrectly appear in the new release's notes.
The Problem:
When generating release notes for version 2025.12.0, the script compares
2025.11.5...2025.12.0b1. This comparison shows commits reachable from2025.12.0b1but not from2025.11.5.Due to the backmerge workflow (merging
betaintodevafter releases), commits from the previous beta cycle are in dev's history. Since2025.11.5is on thereleasebranch and2025.12.0b1is ondev, PRs that were in the 2025.11.0 betas appear as "new" commits even though they were already released.The Fix:
_get_patch_release_prs()to_get_previous_release_prs()Example:
beta→devbackmerge, the commit appears ingit log 2025.11.5...2025.12.0b1Related issue (if applicable): N/A
Pull request in esphome with YAML changes (if applicable): N/A
Checklist:
I am merging into
nextbecause this is new documentation that has a matching pull-request in esphome as linked above.or
I am merging into
currentbecause this is a fix, change and/or adjustment in the current documentation and is not for a new component or feature.Link added in
/components/_index.mdwhen creating new documents for new components or cookbook. (N/A - script change only)