Soenneker.GitHub.Repositories.PullRequests
11.0.2048
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.GitHub.Repositories.PullRequests --version 11.0.2048
NuGet\Install-Package Soenneker.GitHub.Repositories.PullRequests -Version 11.0.2048
<PackageReference Include="Soenneker.GitHub.Repositories.PullRequests" Version="11.0.2048" />
<PackageVersion Include="Soenneker.GitHub.Repositories.PullRequests" Version="11.0.2048" />
<PackageReference Include="Soenneker.GitHub.Repositories.PullRequests" />
paket add Soenneker.GitHub.Repositories.PullRequests --version 11.0.2048
#r "nuget: Soenneker.GitHub.Repositories.PullRequests, 11.0.2048"
#:package Soenneker.GitHub.Repositories.PullRequests@11.0.2048
#addin nuget:?package=Soenneker.GitHub.Repositories.PullRequests&version=11.0.2048
#tool nuget:?package=Soenneker.GitHub.Repositories.PullRequests&version=11.0.2048
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 | net11.0 is compatible. |
-
net11.0
- Soenneker.Extensions.List (>= 11.0.1010)
- Soenneker.Extensions.String (>= 4.0.800)
- Soenneker.GitHub.Repositories.Runs (>= 11.0.1160)
- Soenneker.Utils.Delay (>= 11.0.107)
- Soenneker.Utils.Random (>= 11.0.147)
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 |
|---|---|---|
| 11.0.2071 | 0 | 11/3/2026 |
| 11.0.2070 | 0 | 11/3/2026 |
| 11.0.2069 | 0 | 11/3/2026 |
| 11.0.2068 | 0 | 11/3/2026 |
| 11.0.2067 | 26 | 11/3/2026 |
| 11.0.2066 | 39 | 11/3/2026 |
| 11.0.2065 | 42 | 11/3/2026 |
| 11.0.2064 | 60 | 11/3/2026 |
| 11.0.2061 | 75 | 11/2/2026 |
| 11.0.2060 | 54 | 11/2/2026 |
| 11.0.2059 | 81 | 11/2/2026 |
| 11.0.2058 | 75 | 11/2/2026 |
| 11.0.2057 | 68 | 11/2/2026 |
| 11.0.2056 | 98 | 11/2/2026 |
| 11.0.2055 | 128 | 10/31/2026 |
| 11.0.2053 | 84 | 10/31/2026 |
| 11.0.2050 | 83 | 10/30/2026 |
| 11.0.2049 | 111 | 10/29/2026 |
| 11.0.2048 | 101 | 10/29/2026 |
| 11.0.2047 | 207 | 10/28/2026 |
Update dependency Soenneker.GitHub.Repositories.Runs to 11.0.1160 (#2772)