Skip to content
BENIBIX Learn

/autofix-pr Command

Also known as /autofix-pr, Autofix pull request

It watches your pull request and pushes fixes for you.

Think of it like

It is like a helper who stays by your stand. They fix each thing a buyer points at.

Example

Lucy opens a pull request at the end of the day and runs /autofix-pr. In the night a test fails, and a reviewer asks for a rename. By morning both fixes are pushed.

Why it matters

A pull request does not wait on you for each small fix, so it is ready to merge sooner.

Definition

/autofix-pr starts a cloud session that watches the pull request for the branch you have checked out. When a CI check fails or a reviewer leaves a comment, it pushes a fix. By default it tries to fix every failure and comment. Pass a prompt to narrow that, such as only lint errors. It needs the gh command line tool and access to cloud sessions.

Example code

console
/autofix-pr only fix lint and type errors
Watch the pull request and fix only small errors.
Each failed check or comment leads to a fix, and the checks run again.

Common mistake

Running it on one branch to watch another pull request. It watches the pull request of the branch you have checked out.

Key takeaways

  1. 1
    Watches the pull request. From the cloud.
  2. 2
    Fixes and pushes. Failures and comments.
  3. 3
    A prompt narrows it. Pick what to fix.

Learn it properly