feat(workflows): add clippy-fixer agentic workflow#575
Merged
Conversation
Daily workflow that runs cargo clippy across the workspace and opens a focused, conventional-commits-titled PR for any warnings it finds. Mirrors the bash-lint-auditor pattern: read-only permissions, writes via safe-outputs (create-pull-request, max 1, allowed-files scoped to src/, tests/, examples/, ado-aw-derive/, Cargo.toml/lock), one focused scope per run, full cargo build + test + clippy validation before opening a PR, and cache-memory state to avoid duplicate PRs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new agentic workflow,
clippy-fixer, that runs daily and opens a focused PR to clearcargo clippywarnings as they surface.Design (mirrors the existing
bash-lint-auditorpattern):safe-outputsbash,github,cache-memory(to track prior runs and avoid duplicate PRs)defaults, rust(cargo / crates.io)create-pull-request(max 1) withallowed-filesscoped tosrc/**,tests/**,examples/**,ado-aw-derive/**,Cargo.toml,Cargo.lockAgent loop:
clippycomponent if missing.cargo clippy --all-targets --all-features --workspace -- -D warnings.#[allow], orCargo.tomllint-level edits.needless_borrow,redundant_clone,uninlined_format_args,or_fun_call,single_match, etc.).cargo build,cargo test, and a full clippy pass. Revert ifcargo testregresses.style/refactor/fix(clippy): ...).Includes both the source
.mdand the compiled.lock.yml.Test plan
gh aw compile clippy-fixer→ 0 errors, 0 warnings.gh aw compile clippy-fixer --validate→ passes (only an informational notice about a neweractions/github-scriptSHA, which is repo-wide and unrelated to this workflow).The workflow runs against the production toolchain on a real runner, so live verification will happen on the first scheduled execution.