Objective
Add an example agentic workflow that triggers on deployment_status events to automate DevOps incident detection and issue creation.
Context
From discussion #28538 (Agent Persona Exploration 2026-04-26), the agent persona analysis identified that deployment_status and workflow_run triggers are underrepresented in examples, causing the agent to default to suboptimal triggers for DevOps incident automation scenarios.
Approach
- Create
.github/aw/examples/deployment-incident-monitor.md (or a similar path used for example workflows)
- The workflow should:
- Trigger on
deployment_status: types: [error, failure]
- Use permissions:
contents: read, actions: read, deployments: read
- Use GitHub MCP toolsets:
[repos, actions]
- Use safe-outputs
create-issue with expires and skip-if-match for deduplication
- Include a clear agent prompt asking for root cause analysis
- Reference the new workflow from
.github/aw/github-agentic-workflows.md or create-agentic-workflow.md as a canonical DevOps example
Files to Create/Modify
- Create: a
deployment-incident-monitor.md example workflow in the appropriate examples directory
- Update:
.github/aw/github-agentic-workflows.md or create-agentic-workflow.md to reference the new example
Acceptance Criteria
Generated by Plan Command for issue #discussion #28538 · ● 233.4K · ◷
Objective
Add an example agentic workflow that triggers on
deployment_statusevents to automate DevOps incident detection and issue creation.Context
From discussion #28538 (Agent Persona Exploration 2026-04-26), the agent persona analysis identified that
deployment_statusandworkflow_runtriggers are underrepresented in examples, causing the agent to default to suboptimal triggers for DevOps incident automation scenarios.Approach
.github/aw/examples/deployment-incident-monitor.md(or a similar path used for example workflows)deployment_status: types: [error, failure]contents: read,actions: read,deployments: read[repos, actions]create-issuewithexpiresandskip-if-matchfor deduplication.github/aw/github-agentic-workflows.mdorcreate-agentic-workflow.mdas a canonical DevOps exampleFiles to Create/Modify
deployment-incident-monitor.mdexample workflow in the appropriate examples directory.github/aw/github-agentic-workflows.mdorcreate-agentic-workflow.mdto reference the new exampleAcceptance Criteria
gh aw compile)deployment_statustrigger witherror/failuretypesexpiresto prevent issue spamskip-if-matchis demonstrated