feat(github): check_run and issue_comment webhook events

Merged
KH
2mo ago
+41-0

Summary

The GitHub adapter already ingests check_run.completed and issue_comment.created (DEFAULT_SUPPORTED_EVENTS, canonical checks/<id>.json / issues/<n>/comments/<id>/meta.json paths, trigger catalog), but the mapping's webhooks: block — what webhooks:-driven consumers read — did not declare them:

  • core fallback packages/core/mappings/github.mapping.yaml (shipped in @relayfile/adapter-core, consumed by the AgentWorkforce/flows trigger generator) had only pull_request, pull_request_review, push, issues
  • adapter-local packages/github/github.mapping.yaml had issue_comment.created but no check_run

Both now declare check_run (+ check_run.completed adapter-local) and issue_comment as bare keys with extract: [action, …], the same shape as pull_request, so a generated surface gets check_run(action?) / issue_comment(action?). Paths match path-mapper.ts.

No version bumps (per AGENTS.md). Catalog generators run: no diff — the trigger catalog already listed both events.

Cross-repo follow-up

AgentWorkforce/flows regenerates packages/surface/src/triggers/github.ts from the published @relayfile/adapter-core mapping; it needs a release of adapter-core and a dependency bump there (flows PR opened alongside, marked dependent on this).

Test plan

  • adapter-core validate --spec on both mappings
  • turbo build (52/52), turbo typecheck (core, github), turbo catalog:check (53/53)
  • packages/core tests 186/0, packages/github tests 401/0

🤖 Generated with Claude Code


[!NOTE]
Low Risk
Declarative mapping and changelog updates only; paths align with existing path-mapper behavior and do not change runtime ingestion.

Overview
Aligns GitHub YAML mappings with events the adapter already ingests, so tools that read the webhooks: block (e.g. flows trigger generation from @relayfile/adapter-core) can subscribe to CI check runs and issue/PR comment activity.

Both packages/core/mappings/github.mapping.yaml and packages/github/github.mapping.yaml now declare bare issue_comment and check_run keys with canonical relayfile paths and extract fields (action, ids, check status/conclusion/head SHA, etc.), matching the shape used for pull_request. The adapter-local mapping also adds check_run.completed alongside the generic check_run entry; issue_comment.created remains and is complemented by the bare issue_comment key.

CHANGELOG records the addition for release notes. No ingestion or catalog behavior change is implied by this diff—only the published mapping contract for webhook-driven consumers.

Reviewed by Cursor Bugbot for commit 2ca22de9e49d6770cb61b3900a6c29575fefa29b. Bugbot is set up for automated code reviews on this repo. Configure here.


Agent Relay sessions

  • claude session a274eed5 · opened via gh pr create · last active 2026-09-17