Skip to main content

Push the proposal as a GitHub PR via the shared ZeroQuarryBot App.

POST 

/v1/autofix-proposals/:proposal_id/approve

Runs the layered safety stack before the network call:

  1. tier flag is on
  2. account-level kill switch is OFF
  3. proposal is associated with a github.com repo
  4. ZeroQuarryBot App is configured + has access to this repo for the calling account (cross-tenant authz boundary)
  5. per-repo kill switch is OFF

If layer 4 fails because the bot isn't installed on the org/user that owns the repo, the response is 403 with reason_code: "not_installed" and the repo_slug to install on. The caller should direct the user to /account/github to complete the install — there's no in-band way to trigger that from the API (GitHub's own UI handles consent).

On a GitHub-side failure (network error, dry-run apply rejected the patch, the App's installation token expired or was revoked, etc.) the proposal status flips to failed and the response is 502.

Request​

Responses​

PR opened. Proposal record now has status: pushed, pr_url, pr_number.