Pulls
Objects
Every object and enum the Pulls tools accept.
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Every object and enum the Pulls tools accept.
| Field | Type | Description |
|---|---|---|
title | string | The title of the new pull request. Required unless issue is given. |
head * | string | The name of the branch where your changes are implemented. For cross-repository pull requests, prefix with a username, e.g. username:branch. |
headRepo | string | The name of the repository where the changes in the pull request were made. Used for cross-repository pull requests from forks. |
base * | string | The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. |
body | string | The contents of the pull request. |
maintainerCanModify | boolean | Indicates whether maintainers can modify the pull request. |
draft | boolean | Indicates whether the pull request is a draft. |
issue | integer | An issue number to convert into a pull request. Required unless title is given. The issue’s title, body and comments carry over. |
| Field | Type | Description |
|---|---|---|
path * | string | The file the comment is on, relative to the repo root. |
body * | string | The comment text. |
line | integer | The line in the diff the comment applies to. For a multi-line comment, the last line of the range. |
side | ReviewSide | Which side of the diff: ‘LEFT’ is the old file, ‘RIGHT’ the new. |
startLine | integer | The first line of a multi-line comment. |
startSide | ReviewSide | Which side the multi-line range starts on. |
| Value |
|---|
created |
updated |
| Value |
|---|
merge |
squash |
rebase |
| Value |
|---|
created |
updated |
created_at |
| Value |
|---|
APPROVE |
REQUEST_CHANGES |
COMMENT |
| Value |
|---|
LEFT |
RIGHT |
| Value |
|---|
line |
file |
| Value |
|---|
created |
updated |
popularity |
long-running |
Was this page helpful?