FOR THE BUILDERS, THE MAKERS & THE SMALL TEAMS WITH BIG IDEAS ✳
AI Coding · News Analysis

GitHub CLI Adds Pull Request Event Waiting: What Small Teams Should Check

GitHub CLI v2.105.0 adds gh event listen, a command that lets scripts and coding agents wait for pull request changes. For small teams maintaining agent workflows, this could simplify the interval between opening a pull request and responding to feedback. Our recommendation is a narrow pilot: use events to trigger a fresh state check, while preserving an explicit timeout and recovery path.

ai-coding: Official update → Team impact → Adoption decision. Editorial workflow illustration.
Source-based News Analysis. GitHub’s announcement is dated November 18, 2026; primary sources were accessed November 20, 2026. We did not run the commands or test Event Streams access, delivery, reconnection, or performance. Evaluation steps are editorial proposals. Documentation is mutable.

1. A waiting command for scripts and agents

GitHub’s November 18 announcement introduces Event Streams support in GitHub CLI v2.105.0. The command creates a subscription, opens a stream, and prints each event as a line of JSON. By default, it exits after the first event, allowing a waiting script or agent to continue.

Supported changes include submitted reviews, pull request state and head changes, merge conflicts, and completed check suites. Options include --count for several events, --follow for continued listening, and --timeout for a bounded wait. GitHub also provides commands to create, list, view, and delete subscriptions.

These are documented capabilities, not results from our testing. The practical opportunity is less custom waiting logic: an agent can pause until a relevant change arrives instead of repeatedly asking whether anything happened. That does not establish faster reviews or more reliable automation.

2. Upgrading does not establish access

The v2.105.0 release notes identify the commands as preview features. GitHub’s Event Streams documentation separately requires waitlist access. Installing the CLI version alone therefore does not make a team ready to use the feature.

The current service supports pull requests on GitHub.com. The CLI manual excludes GitHub Enterprise Server and GHE.com. Preview documentation also warns that APIs, event types, and limits may change with short notice.

For a small team, these restrictions favor an optional experiment around an existing workflow. Confirm access and platform eligibility before spending time replacing a working polling implementation. Teams without access can still identify where their automation waits and define the condition that should let it resume.

3. An event signals a change, not acceptance

The command manual describes events as thin CloudEvent JSON objects. Their data.api_url points to the object that changed. A review event does not itself establish approval, and a state-change event does not tell the consumer whether the pull request was merged or closed. Fetch the referenced object to determine what happened.

Check suite events include a conclusion, but each suite produces its own event. One completed suite cannot establish that every required check finished successfully. GitHub recommends reading pull request checks after each event; the manual names gh pr checks as an example.

Coverage also matters. Conversation-tab comments do not currently produce events, while review comments do. Check suite events do not cover commit statuses created through the REST API; those require separate fetching when relevant. Our AI code review workflow helps define the acceptance decision that should follow these notifications.

4. Reconnection does not recover missed events

GitHub documents automatic reconnection when a stream drops. It also states that events occurring while disconnected are not delivered. Earlier events are not replayed, so a successful reconnection cannot establish that the consumer observed every intervening change.

The manual says the command prints a status message each time it attaches to the stream. Read the pull request’s current state after that message, even if it was checked before opening the listener. This addresses the gap between the earlier read and the stream becoming available.

GitHub also documents duplicate and out-of-order delivery. Our editorial recommendation is to treat notifications as prompts to reconcile current state. Record which work has already been handled before allowing an event to trigger another agent action. The patterns in preventing duplicate AI workflow actions are relevant here: repeated delivery should not produce repeated comments or redundant work.

5. Evaluate one bounded handoff

As a proposed pilot, choose one ordinary pull request and one transition, such as a submitted review. GitHub’s documented example uses gh event listen --resource https://github.com/OWNER/REPO/pull/123 --event com.github.pull_request.review.submitted.v1 --timeout 30m. Replace the placeholder with the chosen pull request. This example is sourced from the manual; we have not executed it.

After the listener attaches, read current state. When an event arrives, inspect the referenced review before deciding whether the agent should respond. Explicitly handle timeout: the manual documents exit status 8 when the time limit is reached first. A timeout should lead to a recorded outcome or another state check, rather than being interpreted as approval.

Then evaluate an interrupted connection and repeated notifications. Record whether the workflow reconciles state after reattachment and avoids repeating its action. Compare the amount of custom waiting logic and manual recovery with the existing process. These proposed observations would support an adoption decision; this article supplies no measured improvement.

6. Keep the subscription lifecycle visible

GitHub documents that subscriptions expire after 24 hours and that gh event listen does not delete its subscription when it exits. The CLI can reuse a matching subscription and recreate one when it expires. A pilot should still track subscriptions it leaves behind and close streams before deleting subscriptions that are no longer needed.

Try this release when repeated pull request polling is a visible maintenance burden and preview access is available. Expand only after the workflow handles attachment gaps, incomplete check coverage, duplicate delivery, and timeouts. Teams whose current handoff is simple have little reason to rush a migration. The useful adoption threshold is whether event waiting makes the workflow easier to maintain while preserving a clear, current-state acceptance decision.

Sources & further reading

Primary references used for product and technical information. Features and terms can change; check the provider before committing.

No affiliate links are included in this article. Read our disclosure.