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

[Feature] Support GitHub Action #1072

Open
godruoyi opened this issue Apr 10, 2024 · 1 comment
Open

[Feature] Support GitHub Action #1072

godruoyi opened this issue Apr 10, 2024 · 1 comment

Comments

@godruoyi
Copy link

What happened?

I really like this tool, it is much more useful than Google Java format. I have searched our documents and code but did not find how to integrate into github action. Is there any way we can use github action to automatically format the code when we submit it to github?

@busches
Copy link

busches commented Apr 13, 2024

You can use the standard java action with maven and run mvn spotless:apply, see here for more examples on setting that up: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

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

No branches or pull requests

2 participants