Soenneker.GitHub.Repositories.Discussions 4.0.1635

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.GitHub.Repositories.Discussions --version 4.0.1635
                    
NuGet\Install-Package Soenneker.GitHub.Repositories.Discussions -Version 4.0.1635
                    
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.Discussions" Version="4.0.1635" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.GitHub.Repositories.Discussions" Version="4.0.1635" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.GitHub.Repositories.Discussions" />
                    
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.Discussions --version 4.0.1635
                    
#r "nuget: Soenneker.GitHub.Repositories.Discussions, 4.0.1635"
                    
#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.Discussions@4.0.1635
                    
#: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.Discussions&version=4.0.1635
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.GitHub.Repositories.Discussions&version=4.0.1635
                    
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

Soenneker.GitHub.Repositories.Discussions

Creates, lists, filters, and deletes GitHub repository discussions.

Installation

dotnet add package Soenneker.GitHub.Repositories.Discussions

Configure and register

{
  "GH": {
    "Token": "your-github-token"
  }
}
using Soenneker.GitHub.Repositories.Discussions.Registrars;

services.AddGitHubRepositoriesDiscussionsUtilAsSingleton();

The token needs access to repository discussions and write permission for creation or deletion.

Create a discussion

await discussions.Add(
    "example-org",
    "example-repository",
    new GitHubDiscussion
    {
        Title = "Release feedback",
        Body = "Share feedback for the latest release.",
        Category = new GitHubCategory { Id = categoryId }
    },
    cancellationToken);

Creation sends the discussion title, body, and category ID. A failed request throws; it is not logged as a successful creation.

List discussions

List<GitHubDiscussion> open = await discussions.GetAll(
    "example-org",
    "example-repository",
    state: "open",
    cancellationToken: cancellationToken);

GetAll() follows every page and applies the optional state filter case-insensitively. GetAllForOwner() first selects repositories with discussions enabled, honors the repository creation-date window, and then reads each repository sequentially.

Delete() and DeleteAll() permanently remove discussions. DeleteAll() first retrieves the complete discussion list and then deletes each item; a failure stops the operation and can leave earlier deletions completed.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
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.Discussions:

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.1653 0 10/29/2026
11.0.1652 0 10/29/2026
11.0.1651 66 10/28/2026
11.0.1650 82 10/27/2026
11.0.1649 53 10/27/2026
11.0.1648 53 10/27/2026
11.0.1647 43 10/27/2026
11.0.1646 82 10/27/2026
11.0.1645 71 10/27/2026
11.0.1644 66 10/27/2026
11.0.1643 133 10/26/2026
11.0.1642 88 10/26/2026
11.0.1641 82 10/26/2026
11.0.1640 119 10/26/2026
11.0.1639 82 10/26/2026
11.0.1638 98 10/26/2026
4.0.1637 103 10/26/2026
4.0.1636 129 10/25/2026
4.0.1635 218 10/19/2026
4.0.1634 159 10/18/2026
Loading failed

Update dependency Soenneker.GitHub.Repositories to 4.0.1361 (#2154)