{% extends "docs/base.html" %} {% block docs_content %}

get-pull

Get a pull by target repo and number

Auth

Authenticated

Example

pearing-cli get-pull website 42

Expected Response

Prints a single JSON object from the API. This includes source_repo so reviewers can see which repo the source branch lives in. For merged pulls, this also includes current_source_oid and source_branch_advanced_after_merge so you can tell when the source branch has moved on since the pull was merged.

Errors

Common auth errors are documented on the CLI overview page.

Help Output

Get a pull by target repo and number.

Usage: pearing-cli get-pull <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')
{% endblock %}