Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: add workflow to automatically run prettier when renovate updates it#6370

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JamesHenry merged 2 commits intomainfromautomated-prettier-update
Jun 4, 2023

Conversation

@JamesHenry
Copy link
Member

PR Checklist

Overview

If a prettier update causes formatting to change (which it usually does) then right now a maintainer has to manually update the relevant renovate PR by runningyarn format locally and committing the results.

After this PR goes in, thatyarn format and commit step will be done automatically on the PR without any maintainer involvement

@typescript-eslint
Copy link
Contributor

Thanks for the PR,@JamesHenry!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently onhttps://opencollective.com/typescript-eslint.

@nx-cloud
Copy link

nx-cloudbot commentedJan 23, 2023
edited
Loading

☁️ Nx Cloud Report

CI is running/has finished running commands for commitcf25963. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 47 targets

Sent with 💌 fromNxCloud.

@netlify
Copy link

netlifybot commentedJan 23, 2023
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commitade7707
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/647cb107d157220008663e80
😎 Deploy Previewhttps://deploy-preview-6370--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to yourNetlify site settings.

Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

It would have been nice to get this natively in Renovate withpostUpgradeTasks but it says they're only supported in self-hosted instances 😞...

{"postUpgradeTasks": {"commands": ["yarn format"],"fileFilters": ["**/*"]  }}

But, this feels like something a lot of repos have to solve in more situations. Surely folks need this whenever they update Prettier? So it's something I think we should tackle more holistically.

What about a post-commit hook to runyarn format when the rootpackage.json changes? [their closest example, ignoring filename changes]

@JoshuaKGoldbergJoshuaKGoldberg added the awaiting responseIssues waiting for a reply from the OP or another party labelJan 23, 2023
@JamesHenry
Copy link
MemberAuthor

@JoshuaKGoldberg would a local hook be triggered/included in renovate's commit though?

@JoshuaKGoldberg
Copy link
Member

Hmm, good question. I don't actually know. Never mind me 😄

JoshuaKGoldberg
JoshuaKGoldberg previously approved these changesJan 23, 2023
Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

:shipit: Thanks!

Comment on lines +36 to +37
yarn --ignore-scripts
yarn format

Choose a reason for hiding this comment

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

For a bit faster install, maybe?

Suggested change
yarn --ignore-scripts
yarn format
npx prettier --write .

Copy link
Member

Choose a reason for hiding this comment

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

willnpx respect thepackage.json version of prettier?

Choose a reason for hiding this comment

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

It goes with the latest by default, which should be what the PR is upgrading to anyway.

@bradzacherbradzacher added the repo maintenancethings to do with maintenance of the repo, and not with code/docs labelMar 15, 2023
@nx-cloud
Copy link

nx-cloudbot commentedJun 4, 2023
edited
Loading

☁️ Nx Cloud Report

CI is running/has finished running commands for commitade7707. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 25 targets

Sent with 💌 fromNxCloud.

@JamesHenryJamesHenry merged commit8292c70 intomainJun 4, 2023
@JamesHenryJamesHenry deleted the automated-prettier-update branchJune 4, 2023 15:51
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsJun 12, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@JoshuaKGoldbergJoshuaKGoldbergJoshuaKGoldberg left review comments

@bradzacherbradzacherbradzacher left review comments

+1 more reviewer

@fiskerfiskerfisker left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

awaiting responseIssues waiting for a reply from the OP or another partyrepo maintenancethings to do with maintenance of the repo, and not with code/docs

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@JamesHenry@JoshuaKGoldberg@fisker@bradzacher

[8]ページ先頭

©2009-2025 Movatter.jp