Soenneker.GitHub.Repositories.PullRequests
4.0.1891
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.GitHub.Repositories.PullRequests --version 4.0.1891
NuGet\Install-Package Soenneker.GitHub.Repositories.PullRequests -Version 4.0.1891
<PackageReference Include="Soenneker.GitHub.Repositories.PullRequests" Version="4.0.1891" />
<PackageVersion Include="Soenneker.GitHub.Repositories.PullRequests" Version="4.0.1891" />
<PackageReference Include="Soenneker.GitHub.Repositories.PullRequests" />
paket add Soenneker.GitHub.Repositories.PullRequests --version 4.0.1891
#r "nuget: Soenneker.GitHub.Repositories.PullRequests, 4.0.1891"
#:package Soenneker.GitHub.Repositories.PullRequests@4.0.1891
#addin nuget:?package=Soenneker.GitHub.Repositories.PullRequests&version=4.0.1891
#tool nuget:?package=Soenneker.GitHub.Repositories.PullRequests&version=4.0.1891
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 | Versions 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. |
-
net10.0
- Soenneker.Extensions.DateTime (>= 4.0.1788)
- Soenneker.Extensions.List (>= 4.0.987)
- Soenneker.GitHub.Repositories.Runs (>= 4.0.1040)
- Soenneker.Utils.Delay (>= 4.0.84)
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.1916 | 0 | 9/8/2026 |
| 4.0.1915 | 0 | 9/8/2026 |
| 4.0.1914 | 7 | 9/8/2026 |
| 4.0.1913 | 43 | 9/8/2026 |
| 4.0.1911 | 69 | 9/8/2026 |
| 4.0.1910 | 60 | 9/7/2026 |
| 4.0.1908 | 46 | 9/7/2026 |
| 4.0.1907 | 64 | 9/7/2026 |
| 4.0.1906 | 73 | 9/6/2026 |
| 4.0.1905 | 114 | 9/5/2026 |
| 4.0.1904 | 56 | 9/5/2026 |
| 4.0.1903 | 52 | 9/5/2026 |
| 4.0.1902 | 57 | 9/5/2026 |
| 4.0.1901 | 129 | 9/4/2026 |
| 4.0.1900 | 90 | 9/4/2026 |
| 4.0.1899 | 70 | 9/4/2026 |
| 4.0.1898 | 80 | 9/4/2026 |
| 4.0.1897 | 69 | 9/4/2026 |
| 4.0.1896 | 75 | 9/4/2026 |
| 4.0.1891 | 96 | 9/3/2026 |
Update dependency Soenneker.GitHub.Repositories.Runs to 4.0.1040 (#2553)