Commit 580b3ac
feat(ci): autonomous Dependabot auto-fix and auto-merge workflows (#263)
Makes Dependabot fully hands-off: red PRs get auto-fixed, green PRs get
approved and auto-merged on my behalf. Closes #262.
Two workflows:
- `dependabot-autofix.md` (gh-aw agentic, copilot engine) — fires on CI
failure for a `dependabot/**` branch, reproduces the failure, and pushes
a minimal behavior-preserving fix. Read-only agent job;
`agent-fixed`/`needs-human` loop guard; `github-actions` bumps route to
`needs-human` (can't push `.github/workflows/**` with GITHUB_TOKEN).
- `dependabot-automerge.yml` — fires on green CI for a `dependabot/**`
branch, approves as a CODEOWNER and enables native GitHub auto-merge.
Required secrets (already added): `DEPENDABOT_MERGE_PAT`,
`GH_AW_CI_TRIGGER_TOKEN`. `combine-prs` was disabled to avoid overlap.
```mermaid
flowchart TD
A[Dependabot opens/updates PR] --> B[CI runs]
B -->|green| C[dependabot-automerge]
C --> D[Approve as CODEOWNER + enable auto-merge]
D --> E[Merges once all required checks pass]
B -->|red| F[dependabot-autofix agent]
F --> G{Fixable?}
G -->|yes| H[Push minimal fix + label agent-fixed]
H --> B
G -->|no / still red| I[Label needs-human + comment]
```
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 7e457f4 commit 580b3ac
4 files changed
Lines changed: 1642 additions & 4 deletions
File tree
- .github
- aw
- workflows
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | 9 | | |
5 | 10 | | |
6 | 11 | | |
7 | 12 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
12 | 22 | | |
13 | 23 | | |
14 | 24 | | |
0 commit comments