Soenneker.GitHub.Repositories.PullRequests 4.0.1884

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.GitHub.Repositories.PullRequests --version 4.0.1884
                    
NuGet\Install-Package Soenneker.GitHub.Repositories.PullRequests -Version 4.0.1884
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.GitHub.Repositories.PullRequests" Version="4.0.1884" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.GitHub.Repositories.PullRequests" Version="4.0.1884" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.GitHub.Repositories.PullRequests" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.GitHub.Repositories.PullRequests --version 4.0.1884
                    
#r "nuget: Soenneker.GitHub.Repositories.PullRequests, 4.0.1884"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.GitHub.Repositories.PullRequests@4.0.1884
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.GitHub.Repositories.PullRequests&version=4.0.1884
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.GitHub.Repositories.PullRequests&version=4.0.1884
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.GitHub.Repositories.PullRequests

Retrieve, review, rebase, and merge GitHub pull requests across individual repositories or an entire owner.

Installation

dotnet add package Soenneker.GitHub.Repositories.PullRequests

Configuration

Add a GitHub token to your configuration:

{
  "GH": {
    "Token": "github-token"
  }
}

The token needs access to every repository being queried. Approval, rebase, and merge operations also require the corresponding pull-request permissions.

Registration

services.AddGitHubRepositoriesPullRequestsUtilAsSingleton();

Use AddGitHubRepositoriesPullRequestsUtilAsScoped() when the consumer should be scoped.

Usage

public sealed class PullRequestService
{
    private readonly IGitHubRepositoriesPullRequestsUtil _pullRequests;

    public PullRequestService(IGitHubRepositoriesPullRequestsUtil pullRequests)
    {
        _pullRequests = pullRequests;
    }

    public ValueTask<List<PullRequest>> GetOpenPullRequests(
        CancellationToken cancellationToken = default)
    {
        return _pullRequests.GetAll(
            "soenneker",
            "soenneker.github.repositories.pullrequests",
            cancellationToken: cancellationToken);
    }
}

GetAll returns open pull requests. The optional username, startAt, and endAt arguments filter by author and creation time.

The library also supports:

  • finding repositories with open pull requests or failed pull-request runs
  • checking approval status and approving one or more pull requests
  • rebasing open pull requests whose branches are behind their base branches
  • squash-merging pull requests, including variants that require passing checks

Approval, rebase, and merge methods change repository state. Date and author filters should be used when a bulk operation is intended for only part of a repository's open pull requests.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.GitHub.Repositories.PullRequests:

Package Downloads
Soenneker.GitHub.Repositories.Suite

Registers commonly used Soenneker GitHub repository services through one package

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.1890 30 9/3/2026
4.0.1889 75 9/2/2026
4.0.1888 83 9/1/2026
4.0.1887 75 9/1/2026
4.0.1886 50 9/1/2026
4.0.1885 104 9/1/2026
4.0.1884 69 9/1/2026
4.0.1883 57 8/31/2026
4.0.1882 120 8/31/2026
4.0.1880 73 8/31/2026
4.0.1879 59 8/31/2026
4.0.1878 61 8/31/2026
4.0.1877 61 8/31/2026
4.0.1876 58 8/31/2026
4.0.1875 56 8/30/2026
4.0.1874 54 8/30/2026
4.0.1873 229 8/30/2026
4.0.1872 56 8/30/2026
4.0.1871 59 8/30/2026
4.0.1870 57 8/30/2026
Loading failed

Updated NuGet packages