devdocs/release_notes_generation.md
In order to more easily generate our release notes, we have a "Release notes summary" field in our PR template. This section is extracted from each PR merged for a release, and based on the labels applied to the PR the section is added to the appropriate section of the release notes. After the release notes have been compiled from the pull requests, we do an editing pass to add highlights, reorder sections, and tweak things as needed.
| Label | Meaning |
|---|---|
notes:ready | The "Release notes summary" section of the PR is ready to be included in the release notes |
notes:breaking-changes | Includes summary in the "Breaking Changes" section of the release notes. |
notes:additions | Includes summary in the "Additions" section of the release notes. |
notes:deprecations | Includes summary in the "Deprecations" section of the release notes. |
notes:removals | Includes summary in the "Removals" section of the release notes. |
notes:other | Includes summary in the "Other changes" section of the release notes. |
notes:fixes | Includes summary in the "Bug fixes" section of the release notes. |
notes:mention | Includes summary in the "Hall of Fame" section of the release notes. |
notes:ready label should be applied.notes:ready label can be used to indicate this was intentional. Otherwise, the script will print a notice but still add it to the "Hall of Fame" section.feat: foo turns into just foo). The script will print a notice when this happensHere's a couple example PR release note summary sections, and the release notes generated that would be generated. For this example, all of these PRs are tagged with notes:ready and notes:fixes.
## Release notes summary
Fixed a minor issue. This issue was caused by XYZ.
## Release notes summary
### Fixed a complicated issue
This issue is complicated.
This affects code that is like XYZ.
## Release notes summary
### Fixed foo bar issue
Fixed a difficult to explain issue. This is complicated.
```nu
example code that demonstrates the bug
```
## Release notes summary
Fixed another minor issue.
## Bug fixes
### Fixed foo bar issue
Fixed a difficult to explain issue. This is complicated.
```nu
example code that demonstrates the bug
```
### Fixed a complicated issue
This issue is complicated.
This affects code that is like XYZ.
### Additional bug fixes
- Fixed a minor issue. This issue was caused by XYZ.
- Fixed another minor issue.