{% extends "docs/base.html" %} {% block docs_content %}
Fetch the protection status of a pull
pearing-cli get-pull-protection teams/platform/website 42
Prints a JSON object showing all matching branch protection rules, per-check status (ok, pending, or failed), and whether the pull is currently blocked from merging. When no rules match the target branch, status is ok and rules is empty.
404 Not Found when the referenced resource does not exist.403 Forbidden when owner/repo access checks fail.Common auth errors are documented on the CLI overview page.
Fetch the protection status of a pull.
Shows all matching branch protection rules, per-check status,
and whether the pull is currently blocked from merging.
Usage: pearing-cli get-pull-protection <REPO> <NUMBER>
Arguments:
<REPO> Target repo locator (`teams/<team_slug>/<repo_slug>` or `<username>/<repo_slug>`), or `<repo_slug>` for authenticated user
<NUMBER> Pull number in target repo
Options:
-h, --help Print help (see more with '--help')