Original announcement: GitHub · 2026-11-19. Read the official announcement.
Summary of the New GitHub CLI Event Streaming Feature
GitHub announced that starting with gh CLI version 2.105.0, it supports GitHub Event Streams, enabling users to listen for pull request events directly. This allows developers and automation agents to wait for changes in pull requests through a streamlined command rather than repeatedly polling for updates.
What Has Changed?
- Single-command event listening: Using
gh event listenwith a pull request URL and specified event types, you can subscribe to live events like review submissions or merge conflicts. - Event output: Each event is output as a line of JSON for easy machine parsing.
- Flexible control: Options like
--countwait for multiple events,--followkeeps listening indefinitely, and--timeoutlimits wait time. - Data extraction: Use
--jqor--templateto extract necessary JSON fields efficiently. - Subscription management: New commands
gh event subscription create|list|view|deletelet users manage event subscriptions directly. - Agent integration: Automation agents using commands like
gh pr createorgh run watchwill automatically recommend using event listening instead of polling.
Who Should Care?
This update is most relevant to:
- Developers and teams automating workflows around pull requests, reviews, and CI checks who want more efficient event handling.
- Automation agents and bots integrated with GitHub that currently rely on polling APIs to detect PR changes.
- Developers using GitHub CLI for command-line GitHub interaction seeking streamlined, event-driven operations.
Next Steps for Developers
To take advantage of this new capability, developers should:
- Upgrade to
ghCLI version 2.105.0 or higher. - Sign up for access to the GitHub Event Streams preview if they have not already.
- Explore the
gh event listencommand to listen for relevant pull request events. - Review and integrate
--jqor--templateoptions to parse event data according to their needs. - Consider refactoring existing polling loops in scripts or agents to use this real-time event streaming approach.
- Monitor the
gh event subscriptioncommands for more granular subscription management.
Important Considerations
- The
gh eventcommands and Event Streams feature are currently in preview, which means the API and CLI behavior may change before general availability. - Access requires signing up for the Event Streams preview program on GitHub.com.
Checklist for Developers
- Verify your GitHub CLI version is 2.105.0 or later (
gh --version). - Sign up for Event Streams access via GitHub if needed.
- Test
gh event listenon a pull request to understand output. - Refactor any scripts or automation agents to replace polling with event listening.
- Provide feedback through GitHub Community discussions to assist with feature development.


