marcoieni/cargo-assist
GitHub action to automatically format your Rust code
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| clippy | Whether to run `cargo clippy --fix` or not. Useful if you want to run only `cargo fmt`. Possible values: `true`, `false`. Default: `true`. | no | true |
| clippy_allow_dirty | Whether to add `--allow-dirty` to clippy or not. Useful if you want to run `cargo clippy --fix` on a dirty repository. If you run commands before cargo-assist, the repository might be dirty. Possible values: `true`, `false`. Default: `false`. | no | false |
| clippy_flags | Flags to pass to `cargo clippy --fix`. Default: `--all-targets --all-features --workspace`. | no | --all-targets --all-features --workspace |
| commit_message | Commit message to use when committing the changes. Default: `chore: format, fix lints`. | no | chore: format, fix lints |
| fmt | Whether to run `cargo fmt` or not. Useful if you want to run only `cargo clippy --fix`. Possible values: `true`, `false`. Default: `true`. | no | true |
| github_token | GitHub token of the author of the commit. If you provide `secrets.GITHUB_TOKEN`, the author of the commit is the github-actions bot. | yes | — |
| working_directory | Directory where to run the commands. Defaults to repository's root. Useful if your rust project is in a subdirectory. | no | — |
Outputs
no outputs