Wait for pull request events with GitHub CLI
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
GitHub CLI v2.105.0 adds gh event listen, which waits for pull request changes such as submitted reviews, state or head changes, merge conflicts, and completed check suites, printing each event as JSON. It exits after the first event by default, replacing polling loops in scripts and agent workflows.