GitHub CLI 2.105.0 adds gh event listen to wait for PR events without polling

The release also brings gh event subscription commands, built on the GitHub Event Streams preview.

Share

Published 1 min read

Promotional image: Wait for pull request events with GitHub CLI
Image: Divulgação/GitHub

In brief

  • GitHub CLI 2.105.0 adds gh event listen, which waits for pull request events without polling.
  • By default it exits after the first event; --count and --follow change that.
  • gh event subscription create, list, view and delete manage subscriptions directly.
  • Event Streams is in preview and requires waitlist approval.

GitHub CLI 2.105.0 adds gh event listen, a command that waits for pull request events in a single step instead of polling in a loop. It creates the subscription, opens the stream and prints each event as a line of JSON. By default it exits after the first event, while --count waits for several events and --follow keeps listening.

The release also introduces gh event subscription create, list, view and delete, so subscriptions can be managed directly. The new gh event commands are part of the GitHub Event Streams preview.

Promotional image: Wait for pull request events with GitHub CLI
Image: Divulgação/Anthropic (Claude Code)

YouTube only loads once you press play.Watch on YouTube

Events are delivered over Server-Sent Events, so clients don't need a public endpoint the way webhooks do. An agent can receive events while running on a laptop.

The command can wait for submitted reviews, pull request state and head changes, merge conflicts and completed check suites. Beyond --count and --follow, --timeout stops the wait, and --jq or --template pull out only the fields you need.

gh pr create, gh pr view, gh run view, gh run watch and gh api now suggest gh event listen instead of polling, which helps agents find the new command on their own.

Event Streams is in preview on all GitHub plans after approval from a waitlist, and for now it is available only on GitHub.com. To use the new commands, update to gh v2.105.0 or later.

Full release notes

Changes from the official notes (1)
AreaChange
> gh event listenBy default, gh event listen exits after the first event, so it fits into scripts and agent loops
> gh event listen--count waits for several events, --follow keeps listening and --timeout stops waiting
> gh event listen--jq or --template pull out just the fields you need
What's Changed > ✨ FeaturesNew server-sent events reader and Event Subscriptions API client
What's Changed > ✨ Features > gh event listenNew gh event listen waits for pull request events without polling
What's Changed > ✨ Features > gh event subscription listNew gh event subscription list command
What's Changed > ✨ Features > gh event subscription createNew gh event subscription create command
What's Changed > ✨ Features > gh event subscription viewNew gh event subscription view command
What's Changed > ✨ Features > gh event subscription deleteNew gh event subscription delete command
What's Changed > ✨ Features > gh event listengh pr and gh api now suggest gh event listen to agents
What's Changed > ✨ FeaturesSupport for check suite events, suggested from gh run view and gh run watch
What's Changed > 🐛 Fixes > gh event listengh event listen prints each event without waiting for the next heartbeat
What's Changed > 🐛 Fixes > gh event listengh event listen reports deleted subscriptions clearly
What's Changed > 🐛 Fixes > gh eventImproved stream framing, Retry-After handling, evals, and regression coverage
What's Changed > 📚 Docs & ChoresIssue-triage formatting checks are now nonblocking
What's Changed > 📚 Docs & ChoresAdded event-driven agent evals, gh skill guidance, and preview documentation
What's Changed > Dependencies > golang.org/x/textgolang.org/x/text bumped from 0.43.0 to 0.44.0
What's Changed > Dependencies > golang.org/x/termgolang.org/x/term bumped from 0.47.0 to 0.48.0
What's Changed > Dependencies > golang.org/x/cryptogolang.org/x/crypto bumped from 0.58.0 to 0.59.0
What's Changed > Dependencies > zodzod bumped from 4.3.6 to 4.6.6 in evals
What's Changed > Dependencies > @hono/node-server@hono/node-server bumped from 2.1.5 to 2.1.9 in evals
What's Changed > Dependencies > honohono bumped from 4.13.13 to 4.13.19 in evals
Polling often burns rate-limit budget on requests that mostly return nothing new
Polling less often leaves review feedback waiting until the next check
How to receive pull request updates without pollingSubscribe to a pull request
How to receive pull request updates without pollingConnect to GitHub and keep the connection open to receive events
How to receive pull request updates without pollingReceive an event when one of the following occurs
How to receive pull request updates without pollingEvent when a review is submitted
How to receive pull request updates without pollingEvent when new commits are pushed
How to receive pull request updates without pollingEvent when a merge conflict appears
How to receive pull request updates without pollingEvent when the pull request is merged or closed
How to receive pull request updates without pollingEvent when there is a change to the pull request's check suites
How to receive pull request updates without pollingEvent when a check suite status changes (one event per check suite)
Maintainers The best things in open source are built together Introducing Replica and the Open Source Accessibility Framework, new open source projects for collaboration and inclusion.
> Codename MDASHCodename MDASH pilot turned thousands of AI findings into 99 private reports with suggested fixes for six open source projects
> Agent Host ProtocolOpen Agent Host Protocol keeps agent sessions accessible across editors, apps, phones and the cloud
Practical guide to agent skills
LatestOctober 2026 availability report: eight incidents with degraded performance
LatestGit Git security vulnerabilities announced Git is releasing updates addressing six security vulnerabilities affecting clones, reference handling, merges, binary patches, and imports. Here is what users need to know.
LatestAI & ML Beyond code generation: A developer’s guide to agentic engineering Writing code got faster. The work around it didn’t. See how you can plan, write code, review changes, and investigate production issues with GitHub Copilot, and what work still needs your judgment.
Popular > ReplicaGitHub introduces Replica and the Open Source Accessibility Framework, new open source projects
PopularNews & insights Raising the bar for software security: GitHub 2FA begins March 13 On March 13, we will officially begin rolling out our initiative to require all developers who contribute code on GitHub.com to enable one or more forms of two-factor authentication (2FA) by the end of 2023. Read on t…
Popular > GitGit releases updates addressing six security vulnerabilities
EngineeringInside GitHub’s new Git storage architecture GitHub’s new Git storage architecture is built so thousands of agents can push to a single repository at once. Here’s how it works.
EngineeringThe bridge to agent-scale Git infrastructure We moved a copy of 99.99999% of GitHub’s repositories to Azure. Here’s how per-reference quorums will bring over the rest, and how object storage lets reads scale independently.
EngineeringStaying Evergreen: How we automated secure access and repo hygiene in a shared org Put native GitHub features to work to review outside collaborator access and archive stale repositories.
EngineeringFrom 2,500 requests to 24: Rebuilding star history without the stargazers Our new repo star history API now provides trends without returning individual identities or requiring unbounded database work. These are the engineering tradeoffs we made.
EngineeringBuilding Git infrastructure for agent-scale development We’re rebuilding GitHub’s Git infrastructure while GitHub keeps running, creating a foundation for agent-scale software development.
News & insightsGitHub Universe 2026: Evolving every layer of the stack Today, we laid out our vision for GitHub as the most comprehensive, end-to-end software delivery system in the world.
News & insightsOctoverse: Commits, pushes, reach new highs in 2026 as developers build with agents See how a record year of growth reached every industry, every field, and every kind of builder in the 2026 Octoverse report.
News & insightsThe next developer interface is ambient intelligence AI, agents, voice, and physical controls are shifting software development from operating tools to expressing intent, and helping developers stay focused on building.
News & insightsSeptember 2026 availability report: two incidents with degraded performance
News & insights10 technical talks I’m excited about at GitHub Universe 2026 From verifying AI-written code to securing npm dependencies, these are the sessions I’m building my Universe agenda around.
News & insightsDeveloper policy update: Transparency, state policy, and what’s ahead Explore GitHub’s latest transparency data and learn more about policy updates affecting developers and open source.
gh event > gh event listengh event listen waits for pull request events with a single command instead of polling in a loop
gh event > gh event listenYou can wait for submitted reviews, pull request state and head changes, merge conflicts and completed check suites
gh event > subscription > gh event subscriptiongh event subscription create, list, view and delete manage subscriptions directly
gh pr / gh run / gh apigh pr create, gh pr view, gh run view, gh run watch and gh api now suggest gh event listen instead of polling
What's Changed > gh eventNew gh event command set (preview) lets agents, integrations, and scripts wait for pull request changes instead of polling GitHub
What's Changed > gh event listenBy default, gh event listen exits after the first event; use --count to wait for several events or --follow to keep listening
Source: GitHub
Changes from the official notes (2)
AreaChange
GitHub Event Streams > GitHub Event StreamsGitHub Event Streams is now in preview
GitHub Event Streams > Event StreamsNo public webhook endpoint is required; your agent can receive events while running on your laptop
ChangelogImprovements on the pull request overview in public preview
Changelog > Azure DevOpsEnterprise Live Migrations from Azure DevOps generally available
Changelog > Red Hat Enterprise LinuxRed Hat Enterprise Linux runner images now generally available
Changelog > GHE.comS3 audit log streaming with OpenID Connect expands to GHE.com
GitHub Event Streams > GitHub Event StreamsGitHub Event Streams is now in public preview
GitHub Event Streams > Server-Sent EventsEvents are delivered over Server-Sent Events (SSE), so clients don't need a public endpoint like webhooks
GitHub CLI > gh event listengh event listen exits after the first event, so it fits into agent loops and scripts
GitHub CLI > gh event subscriptiongh event subscription create, list, view and delete manage subscriptions directly
GitHub Event Streams > EventosPull request events: head changes, merge conflict, review submitted, state changes and check suite completed with the conclusion
GitHub Event Streams > APIA five-call REST API to create, list, get, delete and stream subscriptions
Source: GitHub

Official images

Promotional image: Wait for pull request events with GitHub CLI
Image: Divulgação/GitHub
Decorative wallpaper featuring Mona flying over tiles labeled with programming language file extensions.
Image: Divulgação/GitHub
Promotional image: Wait for pull request events with GitHub CLI
Image: Divulgação/GitHub
Share

How this story was made

Drafted with the help of artificial intelligence from a fact sheet built on the sources listed below. Software checked its numbers, dates and names against that fact sheet, and Vynuo, the editor in charge, approved the text before it was published.

Sources for this story

How we know: information from an official source (GitHub, Anthropic (Claude Code)), checked on November 20, 2026.

  1. OfficialWait for pull request events with GitHub CLI (opens in a new tab)GitHub, accessed November 20, 2026
  2. Officialgh v2.105.0 (opens in a new tab)Anthropic (Claude Code), accessed November 20, 2026
  3. OfficialGitHub Event Streams (opens in a new tab)GitHub, accessed November 20, 2026
  4. OfficialThe GitHub Blog (opens in a new tab)GitHub, accessed November 20, 2026
  5. OfficialGitHub Community discussion (opens in a new tab)Anthropic (Claude Code), accessed November 20, 2026

Topics

More in Tech