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

BREAKING: Format changelog using Prettier #100

Merged
merged 2 commits into from
Dec 10, 2023
Merged

Conversation

Mrtenz
Copy link
Member

@Mrtenz Mrtenz commented Sep 28, 2023

MetaMask/auto-changelog#155 adds a method to format changelogs using Prettier. I've enabled this option here.

This is a breaking change, since it will change the default formatting of the changelog in new release PRs. Packages updating to the next version of this package should simultaneously enable the --prettier flag on auto-changelog (see MetaMask/metamask-module-template#219).

@Mrtenz Mrtenz requested a review from a team as a code owner September 28, 2023 11:56
@Mrtenz Mrtenz changed the title Format changelog using Prettier BREAKING: Format changelog using Prettier Sep 28, 2023
mcmire
mcmire previously approved these changes Nov 15, 2023
Copy link
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

Oof, sorry, I didn't see this PR until now. Makes sense!

@mcmire
Copy link
Contributor

mcmire commented Dec 4, 2023

Merge conflicts, sorry 😩

Copy link

Updated dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
@types/node 18.0.3...20.10.2 None +0/-0 3.93 MB types

Copy link
Member

@rekmarks rekmarks left a comment

Choose a reason for hiding this comment

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

LGTM!

@Mrtenz Mrtenz merged commit c9257ac into main Dec 10, 2023
16 checks passed
@Mrtenz Mrtenz deleted the mrtenz/changelog-prettier branch December 10, 2023 23:17
Gudahtt added a commit to MetaMask/core that referenced this pull request Jan 26, 2024
## Explanation

<!--
Thanks for your contribution! Take a moment to answer these questions so
that reviewers have the information they need to properly understand
your changes:

* What is the current state of things and why does it need to change?
* What is the solution your changes offer and how does it work?
* Are there any changes whose purpose might not obvious to those
unfamiliar with the domain?
* If your primary goal was to update one package but you found you had
to update another one along the way, why did you do so?
* If you had to upgrade a dependency, why did you do so?
-->

The newest version of `create-release-branch` formats changelogs with
Prettier after it updates them. This assumes that the project using
`create-release-branch` (this one) already formats changelogs via
Prettier. This isn't enabled yet, so this commit does that.

## References

Also see: MetaMask/create-release-branch#100

## Changelog

<!--
If you're making any consumer-facing changes, list those changes here as
if you were updating a changelog, using the template below as a guide.

(CATEGORY is one of BREAKING, ADDED, CHANGED, DEPRECATED, REMOVED, or
FIXED. For security-related issues, follow the Security Advisory
process.)

Please take care to name the exact pieces of the API you've added or
changed (e.g. types, interfaces, functions, or methods).

If there are any breaking changes, make sure to offer a solution for
consumers to follow once they upgrade to the changes.

Finally, if you're only making changes to development scripts or tests,
you may replace the template below with "None".
-->

(N/A)

## Checklist

- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've highlighted breaking changes using the "BREAKING" category
above as appropriate

---------

Co-authored-by: Mark Stacey <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants