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

Release notes don't display breaking changes obviously #382

Closed
znewman01 opened this issue Sep 9, 2022 · 3 comments · Fixed by #413
Closed

Release notes don't display breaking changes obviously #382

znewman01 opened this issue Sep 9, 2022 · 3 comments · Fixed by #413

Comments

@znewman01
Copy link
Contributor

#354 is marked as breaking:

  • refactor! with a ! in the conventional commit
  • "breaking" box ticked in the PR
  • "BREAKING CHANGE" in the PR description

However, it's in the 0.4.0 release, which doesn't call it out specifically. Should it?

(Or did I do something wrong?)

@rdimitrov
Copy link
Contributor

Goreleaser uses a regex against the PR title to match if upon merge it should be added to a given group (i.e. the "Breaking changes" group).

So far we look for the following prefix -

regexp: "^.*BREAKING CHANGE[(\\w)]*:+.*$"
, but we can totally switch to something else 👍

Ticking the box and/or adding additional info in the description is useful to inform others and to highlight to the maintainers to make sure the title includes the necessary prefix so it gets handled properly in the release notes. It would be nice if there's a way to automate that in some way, i.e. ticking a box to alter the PR title, but I'm not aware of anything like that.

In any case, this part is missing from the docs, so I'll push an update to our guidelines 😃

@znewman01
Copy link
Contributor Author

Gotcha. I would like to honor the ! convention from conventional commits, so let's change that regex. I can make a PR.

@znewman01
Copy link
Contributor Author

FWIW the "BREAKING CHANGE" convention in convention commits isn't supposed to go in the PR title, it's supposed to be a footer. So I think looking for BREAKING CHANGE in the title in the regex is wrong, though probably not worth fixing.

znewman01 added a commit that referenced this issue Oct 7, 2022
Fixes #382

Signed-off-by: Zack Newman <zjn@chainguard.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants