Skip to content

Latest commit

 

History

History
71 lines (51 loc) · 2.06 KB

File metadata and controls

71 lines (51 loc) · 2.06 KB
name example route scope type
Update a pull request
octokit.rest.pulls.update({ owner, repo, pull_number })
PATCH /repos/{owner}/{repo}/pulls/{pull_number}
pulls
API method

Update a pull request

Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.

To open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.

octokit.rest.pulls.update({
  owner,
  repo,
  pull_number,
});

Parameters

name required description
owneryes
repoyes
pull_numberyes
titleno

The title of the pull request.

bodyno

The contents of the pull request.

stateno

State of this Pull Request. Either open or closed.

baseno

The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.

maintainer_can_modifyno

Indicates whether maintainers can modify the pull request.

See also: GitHub Developer Guide documentation.