Skip to content
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

fix: don't format github-native changelog #2802

Merged
merged 1 commit into from
Jan 3, 2022
Merged

Conversation

pelletier
Copy link
Contributor

Thank you for building goreleaser! While setting it up on https://github.com/pelletier/go-toml/tree/v2, I've noticed that when using the github-native changelog setting and publishing releases to GitHub, the resulting release had an odd formatting issue (see below).

The Github changelog generation API returns a pre-formatted changelog. The current implementation prefixes every line of that log with "* ". This operation breaks the formatting.

This change makes goreleaser treat github-native changelog as-is, without trying to modify it.

I tried to write a unit test for this, but couldn't find a good way to both mock the githubNativeChangeloger and evaluate the execution of Pipe.Run.

Would love to hear your thoughts on that change!


Formatting:

image

The Github changelog generation API returns a pre-formatted changelog. The
current implementation prefixes every line of that log with "* ". This operation
breaks the formatting.

This change makes goreleaser treat github-native changelog as-is, without
trying to modify it.
@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 2, 2022
@caarlos0
Copy link
Member

caarlos0 commented Jan 3, 2022

good catch! thanks for the PR!

@caarlos0 caarlos0 merged commit 8d5cee3 into goreleaser:main Jan 3, 2022
@github-actions github-actions bot added this to the v1.3.0 milestone Jan 3, 2022
dirien pushed a commit to dirien/goreleaser that referenced this pull request Jan 4, 2022
The Github changelog generation API returns a pre-formatted changelog. The
current implementation prefixes every line of that log with "* ". This operation
breaks the formatting.

This change makes goreleaser treat github-native changelog as-is, without
trying to modify it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants