This actions will check the formatting of the project, using boot-fmt.
The container configures zprint to search for configuration files in the current project, allowing you to commit the formatting rules as part of the project.
For more configuration details, check upstream documentation
Alternatively, there is also cljfmt action available.
This action provides automated fixes using Pull Request review comments.
If the comment starts with fix $action_name
or fix zprint
, a new commit will
be added to the branch with the automated fixes applied.
Supports: autofix on push
workflow "on push" {
on = "push"
resolves = ["zprint"]
}
# Used for fix on review
# Don't enable if you plan using autofix on push
# Or there might be race conditions
workflow "on review" {
resolves = ["zprint"]
on = "pull_request_review"
}
action "zprint" {
uses = "bltavares/actions/zprint@master"
# Enable autofix on push
# args = ["autofix"]
# Used for pushing changes for `fix` comments on review
secrets = ["GITHUB_TOKEN"]
}