v1

latestSwagger 2.02026-07-175445133.1 KB
git

Create pull request

Creates a pull request for a worktree branch

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

Path parameters

idstring required

Worktree ID

Request body

bodystring
force_pushboolean
titlestring

Response

OK

base_branchstring

Base branch (target branch of the PR)

bodystring

Body/description of the pull request

head_branchstring

Head branch (source branch of the PR)

numberinteger

Pull request number

repositorystring

Repository in owner/repo format

titlestring

Title of the pull request

urlstring

URL to the pull request

Example response

{
  "base_branch": "main",
  "body": "This PR adds new functionality to the system",
  "head_branch": "feature/new-feature",
  "number": 123,
  "repository": "owner/repo",
  "title": "Feature: Add new functionality",
  "url": "https://github.com/owner/repo/pull/123"
}