---
title: "GET /github/docs-project/{uid}/pull-request/for-branch"
method: GET
path: "/github/docs-project/{uid}/pull-request/for-branch"
tags: ["github"]
---

# GET /github/docs-project/{uid}/pull-request/for-branch

`GET /github/docs-project/{uid}/pull-request/for-branch`

Look up the open pull request for a branch on the GitHub repo backing a `provider: github` DocsProject

## Path parameters

- `uid` string, required

## Query parameters

- `branch` string, required

## Response `200`

Default Response

- object
  - `pullRequest` object, nullable, required
    - `url` string, required
    - `number` number, required
    - `title` string, required
    - `body` string, required

## Other responses

- `400` — Bad request
- `401` — No auth
- `403` — Forbidden
- `404` — Not found
- `422` — Invalid payload
- `500` — Uncaught error

---

[API](https://skmtc.dev/scalar/apis/core.md) · [All operations](https://skmtc.dev/scalar/apis/core/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scalar/core/revisions/3095882242e8/schema)
