Skip to main content

Get pull request

Read a pull request, including whether it is merged and whether it can be merged.

Command in the GitHub toolkit · id ooa.github/get_pull_request · 5 inputs (4 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Endpoint addressStringNohttps://api.github.comAPI address. Keep the default for github.com; for GitHub Enterprise Server use https://github.yourcompany.com/api/v3.
TokenCredentialYesPersonal access token or app token from the vault, with access to the repository. Or leave it empty and choose a connection that signs in, which gets and renews the token.
OwnerStringYesUser or organization that owns the repository, e.g. acme-corp.
RepoStringYesRepository name without the owner, e.g. billing-service.
NumberNumberYesPull request number.

Outputs​

OutputTypeWhat it is
pull_requestDictionarynumber, title, state, draft, merged, mergeable, body, author, head, head_sha, base, created_at, updated_at, merged_at, url.
mergedBooleanTrue when already merged.