Soenneker.GitHub.Repositories.Discussions
4.0.1634
Prefix Reserved
dotnet add package Soenneker.GitHub.Repositories.Discussions --version 4.0.1634
NuGet\Install-Package Soenneker.GitHub.Repositories.Discussions -Version 4.0.1634
<PackageReference Include="Soenneker.GitHub.Repositories.Discussions" Version="4.0.1634" />
<PackageVersion Include="Soenneker.GitHub.Repositories.Discussions" Version="4.0.1634" />
<PackageReference Include="Soenneker.GitHub.Repositories.Discussions" />
paket add Soenneker.GitHub.Repositories.Discussions --version 4.0.1634
#r "nuget: Soenneker.GitHub.Repositories.Discussions, 4.0.1634"
#:package Soenneker.GitHub.Repositories.Discussions@4.0.1634
#addin nuget:?package=Soenneker.GitHub.Repositories.Discussions&version=4.0.1634
#tool nuget:?package=Soenneker.GitHub.Repositories.Discussions&version=4.0.1634
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 | 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. |
-
net10.0
- Soenneker.Extensions.HttpClient (>= 4.0.4140)
- Soenneker.GitHub.Repositories (>= 4.0.1360)
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 |
|---|---|---|
| 4.0.1634 | 0 | 10/18/2026 |
| 4.0.1633 | 49 | 10/17/2026 |
| 4.0.1632 | 49 | 10/16/2026 |
| 4.0.1631 | 98 | 10/15/2026 |
| 4.0.1630 | 44 | 10/15/2026 |
| 4.0.1629 | 63 | 10/15/2026 |
| 4.0.1628 | 38 | 10/15/2026 |
| 4.0.1627 | 93 | 10/15/2026 |
| 4.0.1626 | 63 | 10/14/2026 |
| 4.0.1625 | 48 | 10/14/2026 |
| 4.0.1624 | 56 | 10/14/2026 |
| 4.0.1623 | 34 | 10/14/2026 |
| 4.0.1622 | 58 | 10/14/2026 |
| 4.0.1621 | 41 | 10/14/2026 |
| 4.0.1620 | 38 | 10/14/2026 |
| 4.0.1614 | 101 | 10/13/2026 |
| 4.0.1612 | 116 | 10/12/2026 |
| 4.0.1611 | 227 | 10/11/2026 |
| 4.0.1610 | 123 | 10/11/2026 |
| 4.0.1609 | 140 | 10/10/2026 |
Update dependency Soenneker.GitHub.Repositories to 4.0.1360 (#2153)