-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Closed
Labels
bugSomething isn't workingSomething isn't workinggh-releaserelating to the gh release commandrelating to the gh release commandhelp wantedContributions welcomeContributions welcomep3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic
Description
Describe the bug
If an annotated tag has newlines, --notes-from-tag
should preserve those newlines in the created release, but it strips all newlines.
Steps to reproduce the behavior
- create an annotated tag which has newlines
- create a release using
gh release ... --notes-from-tag
- the release it creates will have the content of the annotated tag but without the newlines
Expected vs actual behavior
See above.
Logs
Example:
- for public repo https://github.com/diffplug/blowdryer-diffplug
git show 8.0.0
tag 8.0.0
Tagger: runner <runner@fv-az775-255.ywbp5beigl5e3k0catohwgwj5f.cx.internal.cloudapp.net>
Date: Mon Jul 8 20:32:56 2024 +0000
### Changed
- **BREAKING** `spotlessChangelog` now creates GitHub releases by default ([#6](https://github.com/diffplug/blowdryer-diffplug/pull/6))
- you need to update your `deploy.yml`
- if you set the `tagPrefix`, then you'll need to update the `runAfterPush`
- see PR above for details
commit c642275aebd3ce915fbd4a471117169e164c15a0 (tag: 8.0.0, origin/release, release)
gh release create '8.0.0' --title '8.0.0' --notes-from-tag
gh release view 8.0.0
8.0.0
nedtwigg released this about 5 minutes ago
### Changed - BREAKING spotlessChangelog now creates GitHub releases by default (#6
https://github.com/diffplug/blowdryer-diffplug/pull/6) - you need to update your deploy.yml - if you set the
tagPrefix , then you'll need to update the runAfterPush - see PR above for details
View on GitHub: https://github.com/diffplug/blowdryer-diffplug/releases/tag/8.0.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggh-releaserelating to the gh release commandrelating to the gh release commandhelp wantedContributions welcomeContributions welcomep3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic