Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 25 additions & 58 deletions .github/workflows/code-health.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions .github/workflows/code-health.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ network: defaults
safe-outputs:
create-issue:
max: 2
create-agent-session:
github-token: ${{ secrets.GH_AW_WRITE_TOKEN }}
dispatch-workflow:
workflows: [issue-implementer]
max: 2

---
Expand All @@ -31,8 +33,8 @@ Analyze the entire codebase for cleanup opportunities and open issues for anythi

## Instructions

Read all files in the repository. Identify genuine cleanup opportunities — refactoring, dead code, inconsistencies, stale docs, dependency hygiene, or anything else that would make the codebase meaningfully better.
Read all files in the repository. Read all open issues in the repository. Identify genuine cleanup opportunities — refactoring, dead code, inconsistencies, stale docs, dependency hygiene, or anything else that would make the codebase meaningfully better.

For each finding, open an issue with root cause analysis and a clear spec for resolving it. Each issue must include a testing requirement — regression tests for bugs, coverage for new functionality. Assign copilot to work on each issue.
For each finding, open an issue with root cause analysis and a clear spec for resolving it. Each issue must include a testing requirement — regression tests for bugs, coverage for new functionality. Prefix each issue title with `[aw][code health]` and label each issue with `aw` and `code-health`. After creating each issue, dispatch the issue-implementer workflow with the issue number as input.

Do not open issues for things already caught by CI (ruff, pyright, bandit). Do not open an issue that is just a nit — if there are many small nits that together form a meaningful cleanup, bundle them into one issue. If nothing worth fixing is found, do not create any issues.
Do not open issues for things already caught by CI (ruff, pyright, bandit). Do not open issues for things that already have an open issue. Do not open an issue that is just a nit — if there are many small nits that together form a meaningful cleanup, bundle them into one issue. If nothing worth fixing is found, do not create any issues.
Loading
Loading