GitHub CLI 2.105.0 adds event listening commands and preview Event Streams support
GitHub CLI 2.105.0 introduces gh event listen for real‑time pull‑request event streams, adds gh event subscription subcommands for managing subscriptions, and makes these commands preview‑only, requiring Event Streams access.
GitHub CLI version 2.105.0 adds support for GitHub Event Streams and ships a new set of gh event commands. The commands are released in preview and require Event Streams access on GitHub.com.
The gh event listen command lets a user provide a pull‑request URL and select event types to subscribe to. Each received event is printed as a single line of JSON. By default the command exits after the first event, which simplifies embedding in scripts or agent loops. The --count flag lets the listener wait for a specific number of events, --follow keeps it running indefinitely, and --timeout stops it after a given period. Users can further filter the output with --jq or --template to extract selected fields.
Supported event types include submitted reviews, pull‑request state changes, head changes, merge conflicts, and completed check suites. Existing commands such as gh pr create, gh pr view, gh run view, gh run watch, and gh api now suggest using gh event listen instead of polling.
The suite also provides gh event subscription create, gh event subscription list, gh event subscription view, and gh event subscription delete for direct management of event subscriptions. Access to Event Streams is obtained by signing up on the Event Streams waitlist. Users must upgrade to GitHub CLI version 2.105.0 or later to use the new functionality. Documentation is available through gh event --help, the gh event manual, and the Event Streams documentation.