mirror of
https://github.com/Piebald-AI/claude-code-system-prompts.git
synced 2026-11-20 08:01:53 +08:00
7 lines
1.3 KiB
Markdown
7 lines
1.3 KiB
Markdown
<!--
|
|
name: "Data: Code change published event schema"
|
|
description: "Schema description for the code_change_published system event, including provenance, idempotency, trust boundaries, and best-effort delivery"
|
|
ccVersion: "2.1.216"
|
|
-->
|
|
@internal The session is now associated with a published code change (a pull/merge request). Fires when the harness links the session to a PR — on creation, and also when the session contributes to an existing one (gh pr edit/close/ready, gh pr checkout, a push to a branch that has an open PR) — so bind on every event, not just the first; re-emission for the same URL is possible and idempotent. Provenance: values are scraped from the command's captured output (the last PR-shaped URL printed) or a gh pr view lookup. Captured output is not only the forge CLI's own text — hook output or files printed by the same command can contribute — so treat the fields as a binding hint: display them, but verify against the forge with your own credential-scoped lookup before routing authenticated requests or trusting the host. Best-effort, not exhaustive: a crash before the link, gh printing no URL to a piped capture (gh pr merge), or an unrecognized forge means no event — keep your provider-API lookup as the source of truth and treat this as the trigger.
|