-
-
Notifications
You must be signed in to change notification settings - Fork 64
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃洜 Tooling: Add a bot that suggests auto-formatting #139
Comments
Oh, that's an interesting idea. Is there a bot that does something similar? |
Hooray!
I vaguely remember poking around online and not finding much. There are bots that do it automatically, but I don't remember finding any that do it on command. If such a thing doesn't exist, I'd want it to be a separate bot/action/thing (rather than a bunch of scripts checked into this repo). That way other folks can use it too, outside of this template! |
@JoshuaKGoldberg just started experimenting with a github action at https://github.com/TAKANOME-DEV/prettify-action. Any suggestions is welcomed 馃檹 |
@takanome-dev I've had a working setup of this feature in another project so decided to make a quick PR #261 |
Woow, pretty cool. Didn't know something like that existed. Edit: Ok, don't know why to rewrite it using pnpm 馃槄 Can you elaborate more on that? |
May be this can be useful for this issues? |
If it can offer to fix things, rather than just do it always, then great! |
This is a cool idea. Fact. |
Bug Report Checklist
main
branch of the repository.Overview
Sometimes folks make edits in an environment without Git hooks, such as the web editor (or they use
git commit --no-verify
). Their commits and PRs will have big red 鉂宻 complaining about formatting issues. Asking them to run Prettier might be too difficult; asking them to make manual edits might be too tedious.Let's add a bot that offers to apply Prettier fixing for them. It should explain what the formatting needs are and have something like 'react with 馃憤' and/or 'reply with yes' to trigger.
Edit: maybe not that last bit around having them react/reply? Maybe that can be an addon later? Honestly I haven't put too much thought into the UX of it.No, I really want this to be an opt-in thing. Folks who don't understand Git/GitHub well sometimes have a hard time updating their local branch from the upstream/origin.Additional Info
This will be particularly useful for projects such as https://github.com/OpenContributionsProject/opensourcecontributionssite that are intended to have non-programmer folks participate.
The text was updated successfully, but these errors were encountered: