Skip to content
previewBranchPullRequestQuery
previewBranchPullRequest(branch: String!): PreviewBranchPullRequest

GitHub pull request associated with a preview branch name, used by the debug panel to show PR title/number alongside the branch slug. Returns null when no PR matches the branch or when server-side GitHub lookup is not configured.

Arguments

branchString!

Returns

PreviewBranchPullRequest

See PreviewBranchPullRequest for the full shape.

Try it

Example
Query
query PreviewBranchPullRequest($branch: String!) {
  previewBranchPullRequest(branch: $branch) {
    __typename
  }
}
Variables
{}
POST https://go.sessions.website/api/graphql
previewBranchPullRequest