Tool

List pull requests

The List Pull Requests tool for GitHub enables users to efficiently retrieve and view pull requests within a specific repository. It offers versatile filtering and sorting options to help manage and track code contributions effectively.

GitHub

Features

  • Filter pull requests by base branch to focus on relevant development lines.
  • Sort pull requests by creation date, update time, popularity, or duration for better prioritization.
  • Paginate results with customizable page number and items per page, supporting up to 100 results at once.
  • Filter by state (open, closed, or all) to manage pull request workflow.
  • Filter by head user or organization and branch to pinpoint specific contributors or branches.

Benefits

  • Streamlines repository management by providing an organized view of pull requests.
  • Enhances team collaboration through easy tracking of code changes and updates.
  • Saves time by enabling users to quickly find relevant pull requests using multiple filter options.
  • Improves decision making with sortable and paginated data displays.
  • Supports continuous integration and delivery workflows by facilitating timely review and merge of pull requests.

Description

List pull requests in a GitHub repository. If the user specifies an author, then DO NOT use this tool and use the search_pull_requests tool instead.

Parameters

9 parameters

NameTypeDescription
basestring

Filter by base branch

directionenum

Sort direction

headstring

Filter by head user/org and branch

ownerrequiredstring

Repository owner

pagenumber

Page number for pagination (min 1)

perPagenumber

Results per page for pagination (min 1, max 100)

reporequiredstring

Repository name

sortenum

Sort by

stateenum

Filter by state

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 .