# 🔔 GitHub CLI: "gh event listen" lets people and AI agents wait for pull request events instead of polling

AI Today · published 2026-11-20T23:57:01Z · https://ai-today.com/product/532639e9-da72-4fb2-9993-443515fd3d9e?lang=en

- 🆕 GitHub CLI 2.105.0 adds "gh event listen", a command that waits for events on a pull request.
- 📡 It uses GitHub Event Streams (preview) and prints each event as a line of JSON.
- 🔀 Examples: a submitted review, a merge conflict, completed checks.
- 🚧 Event Streams is waitlist-only; the commands may still change.

🤖 On 18 November GitHub released version 2.105.0 of the GitHub CLI. It includes gh event listen: instead of repeatedly asking in a loop whether a pull request has changed, you wait for it with one command. It creates a subscription, opens a stream and prints each event as a line of JSON. It is meant for scripts and AI agents that wait for a review or CI results. It requires access to Event Streams, which is in preview on GitHub.com; interested users join a waitlist. The gh event commands are in preview and may change.

🔗 You pass the pull request URL and the events you want. Possible events are submitted reviews, changes to the pull request's state and head, merge conflicts and completed check suites. By default the command exits after the first event. --count waits for several, --follow keeps listening and --timeout gives up after a set time. --jq or --template extract individual fields. Subscriptions are managed with gh event subscription create, list, view and delete.

⏳ GitHub also added hints to existing commands: gh pr create, gh pr view, gh run view, gh run watch and gh api now point to gh event listen rather than encouraging polling. That matters for agents, because polling loops cost time and calls. The Event Streams preview itself was announced on 17 November. Documentation is in the manual at cli.github.com/manual/gh_event and via gh event --help; GitHub collects feedback in a community discussion.

## Sources

- [Wait for pull request events with GitHub CLI](https://github.blog/changelog/2026-11-18-wait-for-pull-request-events-with-github-cli)

---
This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources.
