Skip to content

--notes-from-tag does not preserve newlines #9299

@nedtwigg

Description

@nedtwigg

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

  1. create an annotated tag which has newlines
  2. create a release using gh release ... --notes-from-tag
  3. the release it creates will have the content of the annotated tag but without the newlines

Expected vs actual behavior

See above.

Logs

Example:

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

No one assigned

    Labels

    bugSomething isn't workinggh-releaserelating to the gh release commandhelp wantedContributions welcomep3Affects a small number of users or is largely cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions