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(release): changelog renderer should prefer breaking change explanation text #20798

Merged
merged 2 commits into from
Dec 17, 2023

Conversation

JamesHenry
Copy link
Collaborator

Current Behavior

We always repeat the breaking change commit message and do not recognize breaking changes without the ! being present.

Expected Behavior

We recognize breaking changes with only BREAKING CHANGE: present (in accordance with the spec https://www.conventionalcommits.org/en/v1.0.0/), and we preferentially render the explanation text after BREAKING CHANGE: in the relevant section of the changelog.

Related Issue(s)

Fixes #

@JamesHenry JamesHenry requested a review from a team as a code owner December 15, 2023 17:26
Copy link

vercel bot commented Dec 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Dec 17, 2023 11:33am

(commit.isBreaking ? '⚠️ ' : '') +
(commit.scope ? `**${commit.scope.trim()}:** ` : '') +
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved these around it looks better when they line up.

Real example of the "after" of this PR from rxjs repo:

image

@JamesHenry JamesHenry enabled auto-merge (squash) December 17, 2023 13:43
@JamesHenry JamesHenry merged commit 32baa4d into nrwl:master Dec 17, 2023
6 checks passed
@JamesHenry JamesHenry deleted the changelog-breaking-changes branch December 17, 2023 18:55
jaysoo pushed a commit that referenced this pull request Dec 18, 2023
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants