Tool

Update pull request

The Update Pull Request tool streamlines managing GitHub pull requests by allowing users to modify existing pull requests directly within their repositories. It simplifies tasks such as changing base branches, updating descriptions, managing reviewers, and adjusting the pull request state efficiently.

GitHub

Features

  • Update the title and description of an existing pull request to keep information current.
  • Change the base branch for the pull request to reflect new code targets.
  • Mark pull requests as draft or ready for review to control workflow stages.
  • Assign or remove reviewers easily by specifying GitHub usernames.
  • Open or close pull requests and allow maintainers to modify the request as needed.

Benefits

  • Enhances collaboration by keeping pull request information accurate and up to date.
  • Saves time by enabling quick edits without needing to create new pull requests.
  • Improves project management with flexible control over pull request statuses.
  • Facilitates code review workflows by managing reviewers efficiently.
  • Empowers maintainers to contribute to improvements, ensuring quality and consistency.

Description

Update an existing pull request in a GitHub repository.

Parameters

10 parameters

NameTypeDescription
basestring

New base branch name

bodystring

New description

draftboolean

Mark pull request as draft (true) or ready for review (false)

maintainer_can_modifyboolean

Allow maintainer edits

ownerrequiredstring

Repository owner

pullNumberrequirednumber

Pull request number to update

reporequiredstring

Repository name

reviewersstring[]

GitHub usernames to request reviews from

stateenum

New state

titlestring

New title

Try Needle today

Streamline AI productivity at your company today

Join thousands of people who have transformed their workflows.

Agentic workflowsAutomations, meet AI agents
AI SearchAll your data, searchable
Chat widgetsDrop-in widget for your website
Developer APIMake your app talk to Needle
    Needle LogoNeedle
    Like many websites, we use cookies to enhance your experience, analyze site traffic and deliver personalized content while you are here. By clicking "Accept", you are giving us your consent to use cookies in this way. Read our more on our cookie policy .