Skip to content

An editorial team and a community building with AI

← All articles

News · GitHub (Microsoft) · 2 min read

Event date: · Published:

GitHub CLI preview adds gh event listen for pull request events

GitHub shipped a preview of GitHub Event Streams in the GitHub CLI on November 18, 2026, adding a gh event listen command so scripts and agents can wait for pull request events instead of polling.

GitHub announced on November 18, 2026 that it shipped a preview of GitHub Event Streams in the GitHub CLI, introducing a gh event listen command detailed in Wait for pull request events with GitHub CLI. The command lets scripts and coding agents wait for pull request events, such as reviews, check suites, or merge conflicts, instead of polling GitHub's API in a loop.

What changed

  • The new gh event listen command waits for pull request events instead of polling in a loop, and it requires GitHub CLI version 2.105.0 or later.
  • It supports the flags --count, --follow, --timeout, and --jq/--template to extract specific fields from the event data.
  • Tracked events include submitted reviews, pull request state and head changes, merge conflicts, and completed check suites.
  • New subscription commands, gh event subscription create, list, view, and delete, manage event subscriptions.
  • By default the command exits after the first event, which GitHub says is designed to slot into scripts and agent loops.
  • Existing commands gh pr create, gh pr view, gh run view, gh run watch, and gh api now suggest gh event listen in place of polling.

What it means for AI builders

For AI coding agents and CI bots that currently poll GitHub's API in a loop to check on review or build status, gh event listen offers an event-driven alternative. Waiting for an event instead of repeatedly checking for one can cut wasted API calls and compute in agentic workflows built on GitHub, since the command returns as soon as the awaited event happens.

Availability

The feature is in preview and requires signing up for the GitHub Event Streams waitlist.


Sources

Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.

GitHub CLI preview adds gh event listen for pull request events | vibecoding.inc