v1

latestSwagger 2.02026-07-175445133.1 KB
git

Get pull request info

Gets information about an existing pull request for a worktree branch

get/v1/git/worktrees/{id}/pr

Path parameters

idstring required

Worktree ID

Response

OK

bodystring

Body/description of the existing pull request (if exists)

existsboolean

Whether a pull request exists for this branch

has_commits_aheadboolean

Whether the branch has commits ahead of the base branch

numberinteger

Pull request number (if exists)

titlestring

Title of the existing pull request (if exists)

urlstring

URL to the pull request (if exists)

Example response

{
  "body": "This PR adds new functionality",
  "exists": true,
  "has_commits_ahead": true,
  "number": 123,
  "title": "Feature: Add new functionality",
  "url": "https://github.com/owner/repo/pull/123"
}