docs/BrewTestBot-For-Maintainers.md
brew test-bot runs Homebrew's formula checks, builds bottles and tests affected dependents in GitHub Actions.
This page describes maintainer actions after the required checks have completed.
When all required jobs pass and the pull request needs no changes:
Passing checks are not a substitute for reviewing the formula file, its test and the generated bottle checksums. Do not approve a pull request merely to discover whether the publication workflow succeeds.
When automatic publication is intentionally unavailable, trigger the supported workflow with the pull-request number or URL:
brew pr-publish PULL_REQUEST
Use --autosquash only when the target tap supports it and the resulting commit structure matches the repository's policy.
Check the Homebrew/core Actions queue until publication finishes.
Use brew pr-pull PULL_REQUEST when a maintainer must download bottle artifacts and edit unpublished commits locally.
Inspect the command's dry-run and help output before using options that change commits or upload artifacts.
After editing, run the relevant formula checks, inspect the final commits and push only the intended pull-request branch. See Common Issues for Maintainers for preserving the current state before recovering a failed bottle upload from an earlier commit.
Use the homebrew/core rebottling workflow when a formula needs new bottles without an ordinary version update.
Do not use rebottling to conceal a formula change that requires a version or revision update.