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
                    
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.506" />
                    
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.506" />
                    
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.506
                    
#r "nuget: Soenneker.GitHub.Repositories.Subscriptions, 11.0.506"
                    
#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.506
                    
#: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.506
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.GitHub.Repositories.Subscriptions&version=11.0.506
                    
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.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
Loading failed

Update dependency Soenneker.GitHub.ClientUtil to 11.0.836 (#752)