-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Automate Creation of Release Notes with yarn script for version 0.80 #14931
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
…and dates Co-authored-by: anupriya13 <[email protected]>
Co-authored-by: anupriya13 <[email protected]>
|
okay so the format is correct but I want to improve the first line summary, currently we are adding the title as it is but we need a 1 liner summary of the PR which is more readable. Example: this one should be Fixed an issue where changes to the adjustsFontSizeToFit property on Text components did not properly recalculate text layout Fix : adjustsFontSizeToFit just redrawing won't recalculate the layout (#14813) · microsoft/react-native-windows@3e6cccc (github.com) Can you update the script. One way can be reading the description of the PR of the commit and search for this sentence "Add a brief summary of the change to use in the release notes for the next release." add what's after this line |
…ions Co-authored-by: anupriya13 <[email protected]>
Updated the script to extract release notes summaries from PR descriptions. The script now looks for text after "Add a brief summary of the change to use in the release notes for the next release." and uses that as the commit summary instead of the raw commit title. This provides more readable release notes as requested. 5e335dc |
|
okay now add one more logic if in the pr description after this line "Should this change be included in the release notes:" if there is "yes" or "yes" then only include in release notes else don't. Also the last line starting from "###### Microsoft Reviewers: [Open in CodeFlow" should not be added in summary or description of PR in release notes. |
Co-authored-by: anupriya13 <[email protected]>
Added the requested logic to filter commits based on "Should this change be included in the release notes: yes/yes" and to remove Microsoft Reviewers lines from summaries. The script now only includes PRs marked for release notes inclusion and provides cleaner formatting. c6e5c93 |
|
okay now one thing we need to improve is categorisation logic the PR description will have one of these : Type of ChangeErase all that don't apply.
If the PR description has "Bug fix" then map it to "Reliability" section in release notes. |
Co-authored-by: anupriya13 <[email protected]>
Updated the categorization logic to use the PR "Type of Change" section as requested. The script now maps:
|
|
LGTM! :) |
* Automate Creation of Release Notes with yarn script for version 0.80 (#14931) * Initial plan * Add @rnw-scripts/generate-release-notes package with updated version and dates Co-authored-by: anupriya13 <[email protected]> * Update package.json with proper repository info and improve .gitignore Co-authored-by: anupriya13 <[email protected]> * Improve commit summaries by extracting release notes from PR descriptions Co-authored-by: anupriya13 <[email protected]> * Add PR inclusion filtering and Microsoft Reviewers cleanup logic Co-authored-by: anupriya13 <[email protected]> * update logic * Improve categorization logic based on PR Type of Change section Co-authored-by: anupriya13 <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: anupriya13 <[email protected]> * Update yarn.lock * Use params instead of global and add --help --------- Co-authored-by: Copilot <[email protected]>
This PR implements automated release notes generation for React Native Windows using a new
yarn release-notescommand, based on the approach from PR #14720.Changes Made
New Package: @rnw-scripts/generate-release-notes
Updated Configuration
yarn release-notescommand to main package.jsonUsage
Output
The script generates
release_notes.mdinpackages/@rnw-scripts/generate-release-notes/with:Sample Output Format
This automation will significantly reduce manual effort in creating release notes while ensuring consistent formatting and comprehensive commit coverage.
Fixes #14906.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
googlechromelabs.github.io/usr/local/bin/node install.mjs(dns block)https://api.github.com/repos/microsoft/react-native-windows/commitsnode generate-release-notes.js(http block)/usr/local/bin/node generate-release-notes.js(http block)https://storage.googleapis.com/chrome-for-testing-public/130.0.6723.116/linux64/chrome-headless-shell-linux64.zip/usr/local/bin/node install.mjs(http block)https://storage.googleapis.com/chrome-for-testing-public/130.0.6723.116/linux64/chrome-linux64.zip/usr/local/bin/node install.mjs(http block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.