Skip to content
← All automations

PR review queue

A late-morning list of open pull requests, ranked by what to review first, with a one-line risk note each.

Installs
0
Runs (30d)
0
Active builders
0
Trend
—

Uses

Tools: composio:github, cli:git

Triggers: Weekdays at 10:30 AM

Definition (YAML)

Download YAML
id: pr-review-queue
name: PR review queue
category: engineering
tagline: A late-morning list of open pull requests, ranked by what to review first, with a one-line risk note each.
steps:
  - "Lists open, non-draft pull requests with checks and size"
  - "Ranks them by what to review first"
  - "Writes a one-line risk note for the top five"
requires:
  - kind: composio
    id: github
    why: Lists open pull requests, their diffs, checks and reviewers.
  - kind: cli
    id: git
    optional: true
    why: Reads branches locally when GitHub is not connected.
triggers:
  - kind: schedule
    cron: "30 10 * * 1-5"
install:
  agentMode: Ask
  speed: balanced
  runMode: queued
  autoApproveTools: true
  maxRunMinutes: 20
replyStartsWith:
  - "## Review queue"
prompt: |
  Build today's pull request review queue for {{repo}} ({{target.path}}). Today is {{date}}.

  Get the data:
  - Use the `integrations` MCP server's GitHub tools (YOLOSESH_SEARCH_TOOLS, then YOLOSESH_MULTI_EXECUTE_TOOL) to list open, non-draft pull requests for this repository with author, age, size (additions/deletions, files), check status and requested reviewers. Find the repository from `git remote -v`.
  - If GitHub is not connected, list local branches ahead of the default branch with `git branch -vv` and `git log --oneline <default>..<branch>` instead.

  Rank: failing checks last, then smallest and oldest first. For the top 5, read the diff and write one risk note (what could break, not style).

  Reply with only this Markdown, with nothing before or after it:

  ## Review queue · {{repo}} · {{date}}
  | # | PR | Author | Age | Size | Checks | Risk note |
  Then **Blocked** — pull requests waiting on their author (failing checks, changes requested), one line each, or "Nothing blocked". If GitHub is not connected, the table lists local branches and this line ends with "Connect GitHub in Automations for the full queue."

  Read-only: never approve, comment, merge, label, or push.

Agent script

Build today's pull request review queue for {{repo}} ({{target.path}}). Today is {{date}}.

Get the data:
- Use the `integrations` MCP server's GitHub tools (YOLOSESH_SEARCH_TOOLS, then YOLOSESH_MULTI_EXECUTE_TOOL) to list open, non-draft pull requests for this repository with author, age, size (additions/deletions, files), check status and requested reviewers. Find the repository from `git remote -v`.
- If GitHub is not connected, list local branches ahead of the default branch with `git branch -vv` and `git log --oneline <default>..<branch>` instead.

Rank: failing checks last, then smallest and oldest first. For the top 5, read the diff and write one risk note (what could break, not style).

Reply with only this Markdown, with nothing before or after it:

## Review queue · {{repo}} · {{date}}
| # | PR | Author | Age | Size | Checks | Risk note |
Then **Blocked** — pull requests waiting on their author (failing checks, changes requested), one line each, or "Nothing blocked". If GitHub is not connected, the table lists local branches and this line ends with "Connect GitHub in Automations for the full queue."

Read-only: never approve, comment, merge, label, or push.