Skip to main content
Watchfire
Commands
Main content

watchfire pr

watchfire pr follows the pull requests Watchfire opened — state, checks and reviews — and opens a follow-up session on a pull request's branch to fix what it needs.

Follow the pull requests Watchfire opened, and fix what they need.

Usage

watchfire pr <subcommand>

When a finish action opens a pull request, the daemon keeps track of it through the gh CLI, using the same login that opened it. This is read-only towards GitHub and needs no webhook or admin rights.

PR commands need a v11 daemon. Against an older one they refuse to run and say how to restart it.

Subcommands

pr list

Re-read this project's pull requests and show the state, checks and review for each.

watchfire pr list

Aliases: pr ls, pr status.

FlagDescription
--cachedShow the last known status without asking GitHub.

What is tracked for each pull request:

FieldValues
Stateopen, draft, merged, closed
Checkspending, passing, failing
Reviewapproved, changes_requested

An open pull request with failing checks or requested changes is listed under Needs attention in the GUI and TUI, and raises a notification. When a pull request is merged, the local branch kept for it is deleted.

pr fix

Open a follow-up session on a pull request's branch.

watchfire pr fix <task-number> [instruction]

Alias: pr follow-up.

The session's prompt is built from your instruction, the failing checks and the review feedback. Nothing is pushed until you finish the session. Finish it with push to update the pull request:

watchfire pr fix 12 "address the review comments"
watchfire session finish 14 --push
FlagDescription
--agent <backend>Agent backend for the follow-up. Default: the original task's.
--detachStart the follow-up without attaching the terminal.
--sandbox <backend>Sandbox backend: auto, seatbelt, landlock, bwrap, none.
--no-sandboxDisable sandboxing for this session.

There is one follow-up per pull request at a time, and a follow-up is always started by a person.

On this page