Soenneker.GitHub.Repositories.Subscriptions
11.0.472
Prefix Reserved
dotnet add package Soenneker.GitHub.Repositories.Subscriptions --version 11.0.472
NuGet\Install-Package Soenneker.GitHub.Repositories.Subscriptions -Version 11.0.472
<PackageReference Include="Soenneker.GitHub.Repositories.Subscriptions" Version="11.0.472" />
<PackageVersion Include="Soenneker.GitHub.Repositories.Subscriptions" Version="11.0.472" />
<PackageReference Include="Soenneker.GitHub.Repositories.Subscriptions" />
paket add Soenneker.GitHub.Repositories.Subscriptions --version 11.0.472
#r "nuget: Soenneker.GitHub.Repositories.Subscriptions, 11.0.472"
#:package Soenneker.GitHub.Repositories.Subscriptions@11.0.472
#addin nuget:?package=Soenneker.GitHub.Repositories.Subscriptions&version=11.0.472
#tool nuget:?package=Soenneker.GitHub.Repositories.Subscriptions&version=11.0.472
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.800)
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.472 | 0 | 11/25/2026 |
| 11.0.471 | 134 | 11/21/2026 |
| 11.0.470 | 165 | 11/19/2026 |
| 11.0.469 | 76 | 11/19/2026 |
| 11.0.468 | 88 | 11/19/2026 |
| 11.0.467 | 77 | 11/18/2026 |
| 11.0.466 | 123 | 11/18/2026 |
| 11.0.465 | 127 | 11/18/2026 |
| 11.0.464 | 80 | 11/18/2026 |
| 11.0.463 | 153 | 11/17/2026 |
| 11.0.462 | 98 | 11/17/2026 |
| 11.0.461 | 168 | 11/16/2026 |
| 11.0.460 | 98 | 11/15/2026 |
| 11.0.459 | 164 | 11/15/2026 |
| 11.0.458 | 155 | 11/15/2026 |
| 11.0.457 | 178 | 11/14/2026 |
| 11.0.456 | 189 | 11/13/2026 |
| 11.0.455 | 200 | 11/12/2026 |
| 11.0.454 | 144 | 11/11/2026 |
| 11.0.453 | 104 | 11/11/2026 |
Update dependency Soenneker.GitHub.ClientUtil to 11.0.800 (#742)