Soenneker.GitHub.Repositories.Subscriptions
11.0.458
Prefix Reserved
dotnet add package Soenneker.GitHub.Repositories.Subscriptions --version 11.0.458
NuGet\Install-Package Soenneker.GitHub.Repositories.Subscriptions -Version 11.0.458
<PackageReference Include="Soenneker.GitHub.Repositories.Subscriptions" Version="11.0.458" />
<PackageVersion Include="Soenneker.GitHub.Repositories.Subscriptions" Version="11.0.458" />
<PackageReference Include="Soenneker.GitHub.Repositories.Subscriptions" />
paket add Soenneker.GitHub.Repositories.Subscriptions --version 11.0.458
#r "nuget: Soenneker.GitHub.Repositories.Subscriptions, 11.0.458"
#:package Soenneker.GitHub.Repositories.Subscriptions@11.0.458
#addin nuget:?package=Soenneker.GitHub.Repositories.Subscriptions&version=11.0.458
#tool nuget:?package=Soenneker.GitHub.Repositories.Subscriptions&version=11.0.458
Soenneker.GitHub.Repositories.Subscriptions
Read, enable, or remove the authenticated GitHub user's watch subscription for a repository.
Installation
dotnet add package Soenneker.GitHub.Repositories.Subscriptions
Configuration
{
"GH": {
"Token": "github-token"
}
}
The token identifies the user whose repository notification setting will be read or changed and needs access to the target repository.
Registration
services.AddGitHubRepositoriesSubscriptionsUtilAsSingleton();
Use AddGitHubRepositoriesSubscriptionsUtilAsScoped() for a scoped consumer.
Usage
RepositorySubscription? current = await subscriptions.GetStatus(
"soenneker",
"example-repository",
cancellationToken);
RepositorySubscription watching = await subscriptions.Subscribe(
"soenneker",
"example-repository",
cancellationToken);
await subscriptions.Unsubscribe(
"soenneker",
"example-repository",
cancellationToken);
Subscribe sets subscribed to true and ignored to false, enabling watch notifications for the authenticated user. Unsubscribe removes that user's repository subscription.
These methods manage GitHub's repository watching/notification subscription. They do not manage webhooks, GitHub Sponsors, package subscriptions, or repository access.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.GitHub.ClientUtil (>= 11.0.786)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.GitHub.Repositories.Subscriptions:
| 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.458 | 0 | 11/15/2026 |
| 11.0.457 | 51 | 11/14/2026 |
| 11.0.456 | 103 | 11/13/2026 |
| 11.0.455 | 129 | 11/12/2026 |
| 11.0.454 | 111 | 11/11/2026 |
| 11.0.453 | 77 | 11/11/2026 |
| 11.0.452 | 95 | 11/11/2026 |
| 11.0.451 | 94 | 11/11/2026 |
| 11.0.450 | 99 | 11/11/2026 |
| 11.0.449 | 81 | 11/11/2026 |
| 11.0.448 | 77 | 11/11/2026 |
| 11.0.447 | 107 | 11/11/2026 |
| 11.0.446 | 91 | 11/11/2026 |
| 11.0.444 | 159 | 11/10/2026 |
| 11.0.443 | 166 | 11/9/2026 |
| 11.0.442 | 194 | 11/8/2026 |
| 11.0.441 | 129 | 11/7/2026 |
| 11.0.440 | 212 | 11/6/2026 |
| 11.0.439 | 234 | 11/5/2026 |
| 11.0.438 | 158 | 11/4/2026 |
Update dependency Soenneker.GitHub.ClientUtil to 11.0.786 (#736)