isbecker/treefmt GitHub Action

Installs and runs treefmt on your repository

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
versionVersion of treefmt to install and use. Allowed values: - "latest" (default): install the latest available version, determined via GitHub releases - "system": use the system-provided version (no install), for usage with e.g., treefmt.nix - SemVer (e.g. "1.2.3"), to install a specific version yeslatest
github-tokenGitHub token for accessing the API. Used to allow this action to download and install treefmt releases from GitHub. yes
config-filePath to a treefmt configuration file. If not provided, treefmt will search upwards for treefmt.toml or .treefmt.toml from the working directory. Set working_dir input to change the working directory. no
allow-missing-formatterDo not exit with error if a configured formatter is missingno
working-dirRun as if treefmt was started in the specified working directory instead of the current working directory. no
ciRuns treefmt in a CI mode, enabling --no-cache, --fail-on-change and adjusting some other settings best suited to a CI use case. Recommended when using treefmt in CI workflows, like this action. notrue
no-cacheIgnore the evaluation cache entirely. Useful for CI.no
fail-on-changeExit with error if any changes were made. Useful for CI.no
formattersSpecify formatters to apply. Defaults to all formatters.no
tree-rootThe root directory from which treefmt will start walking the filesystem. Defaults to the root of the current git or jujutsu worktree. If not in a git or jujutsu repo, defaults to the directory containing the config file. no
tree-root-fileFile to search for to find the tree root.no
tree-root-cmdCommand to run to find the tree root. It is parsed using shlex, to allow quoting arguments that contain whitespace. If you wish to pass arguments containing quotes, you should use nested quotes e.g. "'" or '"'. no
walkThe method used to traverse the files within tree root. Allowed values: - "auto": automatically choose the best method (default) - "git": use git to list files - "jujutsu": use jujutsu to list files - "filesystem": traverse the filesystem directly no
verboseSet the verbosity of logs.no
quietDisable all logs except errors.no
on-unmatchedLog paths that did not match any formatters at the specified log level. Defaults to "info". Allowed values: - "debug" - "info" - "warn" - "error" - "fatal" no
clear-cacheReset the evaluation cache. Use in case the cache is not precise enough.no
excludesExclude files or directories matching the specified globs.no

no outputs