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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.GitHub.Repositories.Subscriptions" Version="11.0.472" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.GitHub.Repositories.Subscriptions" Version="11.0.472" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.GitHub.Repositories.Subscriptions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.GitHub.Repositories.Subscriptions --version 11.0.472
                    
#r "nuget: Soenneker.GitHub.Repositories.Subscriptions, 11.0.472"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.GitHub.Repositories.Subscriptions@11.0.472
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.GitHub.Repositories.Subscriptions&version=11.0.472
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.GitHub.Repositories.Subscriptions&version=11.0.472
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image 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 Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed

Update dependency Soenneker.GitHub.ClientUtil to 11.0.800 (#742)