Soenneker.GitHub.Repositories.Subscriptions
11.0.506
Prefix Reserved
dotnet add package Soenneker.GitHub.Repositories.Subscriptions --version 11.0.506
NuGet\Install-Package Soenneker.GitHub.Repositories.Subscriptions -Version 11.0.506
<PackageReference Include="Soenneker.GitHub.Repositories.Subscriptions" Version="11.0.506" />
<PackageVersion Include="Soenneker.GitHub.Repositories.Subscriptions" Version="11.0.506" />
<PackageReference Include="Soenneker.GitHub.Repositories.Subscriptions" />
paket add Soenneker.GitHub.Repositories.Subscriptions --version 11.0.506
#r "nuget: Soenneker.GitHub.Repositories.Subscriptions, 11.0.506"
#:package Soenneker.GitHub.Repositories.Subscriptions@11.0.506
#addin nuget:?package=Soenneker.GitHub.Repositories.Subscriptions&version=11.0.506
#tool nuget:?package=Soenneker.GitHub.Repositories.Subscriptions&version=11.0.506
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.836)
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.506 | 0 | 12/6/2026 |
| 11.0.505 | 46 | 12/5/2026 |
| 11.0.504 | 110 | 12/3/2026 |
| 11.0.503 | 82 | 12/3/2026 |
| 11.0.502 | 87 | 12/3/2026 |
| 11.0.501 | 96 | 12/3/2026 |
| 11.0.500 | 112 | 12/3/2026 |
| 11.0.499 | 64 | 12/3/2026 |
| 11.0.498 | 72 | 12/3/2026 |
| 11.0.497 | 72 | 12/3/2026 |
| 11.0.496 | 111 | 12/2/2026 |
| 11.0.494 | 96 | 12/2/2026 |
| 11.0.493 | 79 | 12/2/2026 |
| 11.0.492 | 111 | 12/2/2026 |
| 11.0.491 | 153 | 12/2/2026 |
| 11.0.490 | 155 | 12/1/2026 |
| 11.0.489 | 97 | 12/1/2026 |
| 11.0.488 | 103 | 12/1/2026 |
| 11.0.487 | 104 | 12/1/2026 |
| 11.0.486 | 101 | 12/1/2026 |
Update dependency Soenneker.GitHub.ClientUtil to 11.0.836 (#752)