-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
Use Prettier to format changelogs #3850
Conversation
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.
@@ -11,7 +11,7 @@ package_name="$1" | |||
shift # remove package name from arguments | |||
|
|||
if [[ "${GITHUB_REF:-}" =~ '^release/' ]]; then | |||
yarn auto-changelog validate --tag-prefix "${package_name}@" --rc "$@" | |||
yarn auto-changelog validate --prettier --tag-prefix "${package_name}@" --rc "$@" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we'll want the same flag added to update-changelog.sh
as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, good call. Updated in 4c39092.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Explanation
The newest version of
create-release-branch
formats changelogs with Prettier after it updates them. This assumes that the project usingcreate-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
(N/A)
Checklist