watch_pull
Track a GitHub pull request's checks and post status updates, failures, and logs to its thread so agents can monitor CI progress.
Instructions
Watch a GitHub pull request's checks. Each change-sweep tick reads it once and records on its thread where the checks on its head stand (ci: status pending, success or failure, the failing jobs, and the last 4 KB of the first failing job's log), with a notice when it is first seen open (pr_opened), when a check fails (ci_failed) and when every check has finished (checks_done), each once per head commit. A pull request the workspace already tracks (one the change flow opened, or a session registered on its task) answers with its thread (created: false); otherwise a thread is made for it in channel_id, or the workspace's public pull-requests channel. The repository must be on this workspace's github or github_branch egress allowlist. A pull request another workspace tracks is a conflict.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace_id": "<workspace_id>",
"repo": "<repo>",
"pull_number": "<pull_number>"
},
"name": "watch_pull"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | owner/name | |
| title | No | a new watch thread's title; owner/name#N when omitted | |
| channel_id | No | where a new watch thread goes; the workspace's pull-requests channel when omitted | |
| pull_number | Yes | ||
| workspace_id | Yes |