Soenneker.GitHub.Repositories.Discussions
11.0.1756
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.GitHub.Repositories.Discussions --version 11.0.1756
NuGet\Install-Package Soenneker.GitHub.Repositories.Discussions -Version 11.0.1756
<PackageReference Include="Soenneker.GitHub.Repositories.Discussions" Version="11.0.1756" />
<PackageVersion Include="Soenneker.GitHub.Repositories.Discussions" Version="11.0.1756" />
<PackageReference Include="Soenneker.GitHub.Repositories.Discussions" />
paket add Soenneker.GitHub.Repositories.Discussions --version 11.0.1756
#r "nuget: Soenneker.GitHub.Repositories.Discussions, 11.0.1756"
#:package Soenneker.GitHub.Repositories.Discussions@11.0.1756
#addin nuget:?package=Soenneker.GitHub.Repositories.Discussions&version=11.0.1756
#tool nuget:?package=Soenneker.GitHub.Repositories.Discussions&version=11.0.1756
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Extensions.HttpClient (>= 11.0.4229)
- Soenneker.GitHub.Repositories (>= 11.0.1463)
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.1758 | 0 | 12/2/2026 |
| 11.0.1757 | 0 | 12/2/2026 |
| 11.0.1756 | 50 | 12/1/2026 |
| 11.0.1755 | 50 | 12/1/2026 |
| 11.0.1754 | 46 | 12/1/2026 |
| 11.0.1753 | 51 | 12/1/2026 |
| 11.0.1752 | 64 | 12/1/2026 |
| 11.0.1751 | 71 | 12/1/2026 |
| 11.0.1750 | 71 | 12/1/2026 |
| 11.0.1749 | 78 | 12/1/2026 |
| 11.0.1748 | 76 | 12/1/2026 |
| 11.0.1747 | 94 | 12/1/2026 |
| 11.0.1746 | 96 | 12/1/2026 |
| 11.0.1745 | 110 | 11/30/2026 |
| 11.0.1744 | 100 | 11/30/2026 |
| 11.0.1743 | 102 | 11/30/2026 |
| 11.0.1742 | 97 | 11/30/2026 |
| 11.0.1741 | 122 | 11/30/2026 |
| 11.0.1740 | 112 | 11/30/2026 |
| 11.0.1739 | 94 | 11/30/2026 |
Updated Multiple NuGet packages