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

github: implement an action to format modified code in pull request. #3154

Open
ramosian-glider opened this issue May 20, 2022 · 0 comments
Open

Comments

@ramosian-glider
Copy link
Member

When changing files in GitHub online editor, it's hard to obey the formatting rules.
It would be nice to have a GitHub Action to format the code properly.

https://github.com/peter-evans/slash-command-dispatch can serve as a source of inspiration (peter-evans/slash-command-dispatch#11 in particular) - upon typing a command in the pull request comments it performs code formatting and pushes the fixes to the branch as a separate patch. Perhaps it can also amend instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant