Commit a107107
[gh-aw] Add
## Summary
Adds a **nightly agentic workflow** (`gh aw`) that automatically scans the repo for code quality improvements, files issues, and assigns Copilot (Claude Opus 4.6) to fix them.
## What it does
Each night, the workflow:
1. Runs a pre-agent bash step that randomly selects one of 9 scan categories
2. Collects scan data for ONLY that category (prevents the agent from gravitating to favorites)
3. The AI agent investigates the findings and picks one specific, actionable improvement
4. Creates a focused GitHub issue describing the problem and fix
5. Assigns Copilot to implement the fix automatically
Can also be triggered manually via `workflow_dispatch` with a category dropdown.
## Scan Categories
| # | Category | What it scans |
|---|----------|---------------|
| 0 | TODO/FIXME/HACK Comments | Stale TODO/FIXME/HACK comments that should be resolved |
| 1 | Nullable Reference Types | C# files missing `#nullable enable` that should be opted in |
| 2 | Obsolete API Usage | Uses of `[Obsolete]` members that should be updated |
| 3 | Performance Anti-patterns | Sync-over-async, string concat in loops, unnecessary allocations |
| 4 | Missing XML Documentation | Public APIs in `src/Mono.Android/` without XML doc comments |
| 5 | General Mistakes | Random source files reviewed for real bugs, logic errors, dead code |
| 6 | Unused Using Directives | Files with excessive using directives that could be cleaned up |
| 7 | Error Handling | Bare `catch (Exception)` blocks that swallow errors |
| 8 | String Literals in Error Messages | Hardcoded error strings that should be in `Properties.Resources` with XA codes |
## Files
- `.github/workflows/nightly-fix-finder.md` — Workflow source (frontmatter + agent prompt)
- `.github/workflows/nightly-fix-finder.lock.yml` — Compiled workflow (auto-generated by `gh aw compile`)
- `.github/skills/android-reviewer/references/msbuild-rules.md` — Updated XA error code doc requirement
## Setup required
- `ANDROID_TEAM_PAT` secret must be created in the repo for `assign_to_agent` to work (fine-grained PAT with Issues R/W, Contents R, Pull Requests R/W)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>nightly-fix-finder agentic workflow (#11352)1 parent 33b81dc commit a107107
3 files changed
Lines changed: 1636 additions & 1 deletion
File tree
- .github
- skills/android-reviewer/references
- workflows
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments