Skip to content

Commit 580b3ac

Browse files
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/actions-lock.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
{
22
"entries": {
3+
"actions/checkout@v6": {
4+
"repo": "actions/checkout",
5+
"version": "v6",
6+
"sha": "df4cb1c069e1874edd31b4311f1884172cec0e10"
7+
},
38
"actions/github-script@v8": {
49
"repo": "actions/github-script",
510
"version": "v8",
611
"sha": "ed597411d8f924073f98dfc5c65a23a2325f34cd"
712
},
8-
"github/gh-aw-actions/setup@v0.64.2": {
9-
"repo": "github/gh-aw-actions/setup",
10-
"version": "v0.64.2",
11-
"sha": "f22886a9607f5c27e79742a8bfc5faa34737138b"
13+
"actions/github-script@v9": {
14+
"repo": "actions/github-script",
15+
"version": "v9",
16+
"sha": "373c709c69115d41ff229c7e5df9f8788daa9553"
17+
},
18+
"actions/setup-node@v6": {
19+
"repo": "actions/setup-node",
20+
"version": "v6",
21+
"sha": "48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e"
1222
}
1323
}
1424
}

0 commit comments

Comments
 (0)