You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/aw/create-agentic-workflow.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,11 +85,19 @@ Use [workflow-patterns.md](workflow-patterns.md) for trigger-selection guidance.
85
85
86
86
Compact scenario examples:
87
87
88
-
-**Schema review on PRs**: trigger `pull_request`, read via `github` (`gh-proxy`), publish findings with `add-comment`, call `noop` when schema is unchanged.
88
+
-**Schema/API review on PRs**: trigger `pull_request` with `paths:` scoped to backend contract files (for example `db/migrate/**`, `migrations/**`, `schema/**`, `openapi/**`, `api/**`), read via `github` (`gh-proxy`), publish findings with `add-comment`, call `noop` when contracts are unchanged.
89
89
-**Visual regression on UI changes**: trigger `pull_request`, use `playwright` + `cache-memory`, keep writes in `add-comment`, call `noop` when UI paths are unchanged.
90
90
-**Deployment incident triage**: use `deployment_status` for external provider failures and `workflow_run` for GitHub Actions failures, publish incident reports via `create-issue`, call `noop` when a failure self-recovers or is duplicate noise.
91
91
-**Product/stakeholder digest**: use fuzzy `schedule` plus optional `workflow_dispatch`, publish digest with `create-issue`, call `noop` when there are no updates in the date window.
92
92
93
+
### 2a. Backend review compact guidance
94
+
95
+
For backend-focused PR automation (schema migrations and API compatibility):
96
+
97
+
- scope `pull_request.paths` to backend contract indicators instead of whole-repo review
98
+
- instruct the agent to classify changes as additive, backward-compatible, or breaking, then report only actionable risks
99
+
- include explicit `noop` criteria when no migration/API contract files changed
100
+
93
101
### 3. Keep permissions read-only
94
102
95
103
The main agent job must stay read-only.
@@ -269,7 +277,7 @@ Before finalizing any newly generated workflow, verify:
269
277
270
278
Before finalizing any newly generated workflow, verify:
271
279
272
-
-[ ]**Paths scope**: include `paths:`/`paths-ignore:` when the automation should ignore unrelated files
280
+
-[ ]**Paths scope**: include `paths:`/`paths-ignore:` when the automation should ignore unrelated files (for backend reviews, include migration/schema/API contract globs)
273
281
-[ ]**Labels scope**: define required labels (for example `label_command` names or PR/issue label filters) when label-based routing is expected
274
282
-[ ]**Workflow-name scope**: for `workflow_run`, explicitly name target workflows and conclusions to avoid accidental matches
275
283
-[ ]**Date-window scope**: for reporting/triage, state the exact window (for example `last 24h`, `since previous run`, `current week`)
0 commit comments