Soenneker.GitHub.Repositories.Discussions
4.0.1530
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.GitHub.Repositories.Discussions --version 4.0.1530
NuGet\Install-Package Soenneker.GitHub.Repositories.Discussions -Version 4.0.1530
<PackageReference Include="Soenneker.GitHub.Repositories.Discussions" Version="4.0.1530" />
<PackageVersion Include="Soenneker.GitHub.Repositories.Discussions" Version="4.0.1530" />
<PackageReference Include="Soenneker.GitHub.Repositories.Discussions" />
paket add Soenneker.GitHub.Repositories.Discussions --version 4.0.1530
#r "nuget: Soenneker.GitHub.Repositories.Discussions, 4.0.1530"
#:package Soenneker.GitHub.Repositories.Discussions@4.0.1530
#addin nuget:?package=Soenneker.GitHub.Repositories.Discussions&version=4.0.1530
#tool nuget:?package=Soenneker.GitHub.Repositories.Discussions&version=4.0.1530
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.4030)
- Soenneker.GitHub.Repositories (>= 4.0.1258)
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.1540 | 0 | 9/9/2026 |
| 4.0.1539 | 0 | 9/9/2026 |
| 4.0.1538 | 0 | 9/9/2026 |
| 4.0.1537 | 25 | 9/9/2026 |
| 4.0.1536 | 49 | 9/9/2026 |
| 4.0.1535 | 45 | 9/9/2026 |
| 4.0.1534 | 44 | 9/8/2026 |
| 4.0.1533 | 52 | 9/8/2026 |
| 4.0.1532 | 41 | 9/8/2026 |
| 4.0.1531 | 40 | 9/8/2026 |
| 4.0.1530 | 47 | 9/8/2026 |
| 4.0.1529 | 40 | 9/8/2026 |
| 4.0.1528 | 87 | 9/8/2026 |
| 4.0.1527 | 92 | 9/8/2026 |
| 4.0.1526 | 70 | 9/8/2026 |
| 4.0.1525 | 86 | 9/8/2026 |
| 4.0.1524 | 96 | 9/7/2026 |
| 4.0.1523 | 98 | 9/7/2026 |
| 4.0.1522 | 79 | 9/7/2026 |
| 4.0.1521 | 92 | 9/7/2026 |
Updated Multiple NuGet packages