{
"id": "operational-trigger:amux-triggers-github",
"_kind": "OperationalTrigger",
"_file": "extensions/operational-triggers/triggers-package-canonical.yaml",
"_cluster": "extensions",
"attributes": {
"displayName": "amux-triggers โ GitHub backend",
"triggerKind": "webhook-event",
"effect": "Normalizes a GitHub Actions event payload (issue / pull_request /\nissue_comment / push) into NormalizedTriggerEvent, enriches changed\nfiles via `pulls/:n/files` or `commits/:sha`, optionally pulls\nunified diffs via `git show`, then evaluates a TriggerQuery and\nexits 0 (matched) / 78 (skip) / non-zero (error).\n",
"idempotent": true,
"invokerSurface": "webhook",
"backend": "github",
"eventTaxonomy": [
"issue_comment",
"issues",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"workflow_dispatch"
],
"dispatchModel": "normalize-and-evaluate",
"payloadShape": "NormalizedTriggerEvent",
"queryDsl": "key-colon-value",
"cliEntrypoint": "amux-triggers",
"enrichmentSources": [
"workflow-event-payload",
"github-rest-api",
"local-git-show",
"git-diff-unified"
],
"sideEffects": [
"Sets GITHUB_OUTPUT matched=true|false (action.yml:170)",
"Writes enriched event JSON to RUNNER_TEMP/agent-mux-event.json",
"Writes evaluation result JSON to RUNNER_TEMP/agent-mux-trigger.json",
"On match runs pre-run, then `amux <command>`, then post-run (action.yml:174-232)"
],
"sourceCitation": "packages/triggers/src/backends/github.ts:4 (normalizeGithub),\npackages/triggers/src/enrich.ts:61 (enrichGithubFromApi),\npackages/triggers/action.yml:131-172 (Evaluate trigger step).\n",
"exitCodeSemantics": [
"0:matched:trigger query matched, downstream pipeline runs (cli.ts:65)",
"78:skip:trigger query did not match; action.yml:165 treats 78 as soft-skip",
"1:error:invalid args / unhandled exception"
]
},
"outgoingEdges": [
{
"from": "operational-trigger:amux-triggers-github",
"to": "package:a5c-ai-triggers",
"kind": "implemented_by",
"attributes": {}
},
{
"from": "operational-trigger:amux-triggers-github",
"to": "shared-context-spec:normalized-trigger-event",
"kind": "has_payload_schema",
"attributes": {}
},
{
"from": "operational-trigger:amux-triggers-github",
"to": "api-endpoint:github-pulls-files",
"kind": "calls_endpoint",
"attributes": {}
},
{
"from": "operational-trigger:amux-triggers-github",
"to": "api-endpoint:github-commits-by-sha",
"kind": "calls_endpoint",
"attributes": {}
},
{
"from": "operational-trigger:amux-triggers-github",
"to": "grammar:amux-triggers-query-dsl",
"kind": "parsed_by_grammar",
"attributes": {}
}
],
"incomingEdges": [
{
"from": "grammar:amux-triggers-query-dsl",
"to": "operational-trigger:amux-triggers-github",
"kind": "grammar_parses_for",
"attributes": {}
},
{
"from": "api-endpoint:github-pulls-files",
"to": "operational-trigger:amux-triggers-github",
"kind": "called_by_trigger",
"attributes": {}
},
{
"from": "api-endpoint:github-commits-by-sha",
"to": "operational-trigger:amux-triggers-github",
"kind": "called_by_trigger",
"attributes": {}
}
]
}