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
{{ message }}
Repository navigation
Commit 9171e63
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/event-listen-preview.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,8 @@ When `internal/agents` detects an agent caller, a successful `gh pr create` of a
43
43
44
44
For an agent caller, `gh run watch` and `gh run view` of a workflow run that is not completed and belongs to a github.com pull request print a similar hint on stderr, addressed to agents that need to wait for the checks of the pull request to finish. It suggests listening to `com.github.pull_request.check_suite.status.changed.v1` for the pull request, with the same notes, except that it explains that each check suite sends its own event with its conclusion, and that the checks should be read with `gh pr checks` after each event, running the listener again while any are pending. `gh run watch` prints it before it starts watching, so it is seen even if the watch is stopped. `gh run view` prints it with `--json` too, but not with `--web` or `--log`. The `gh run watch` and `gh run view` help texts point to `gh event listen` for waiting on the workflow runs of a github.com pull request.
45
45
46
+
Hints are only printed on github.com if event subscriptions are enabled for the account. GitHub Enterprise Server and GHE.com hosts skip the probe and print no hint. Feature detection checks this with `GET /event-subscriptions?per_page=1` and a `gh-feature-detection: true` header, which marks the request as a probe. A `403` or `404` response means event subscriptions are not enabled, and other failures print no hint. The result, including a `403` or `404`, is cached for 24 hours.
47
+
46
48
## Eval use
47
49
48
50
The shipped `gh` skill at `skills/gh` documents `gh event listen`. Evaluate it from the working tree, or compare it with the version on trunk, which has no event guidance until this change merges:
0 commit comments