Soenneker.GitHub.Repositories.Tags
4.0.949
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.GitHub.Repositories.Tags --version 4.0.949
NuGet\Install-Package Soenneker.GitHub.Repositories.Tags -Version 4.0.949
<PackageReference Include="Soenneker.GitHub.Repositories.Tags" Version="4.0.949" />
<PackageVersion Include="Soenneker.GitHub.Repositories.Tags" Version="4.0.949" />
<PackageReference Include="Soenneker.GitHub.Repositories.Tags" />
paket add Soenneker.GitHub.Repositories.Tags --version 4.0.949
#r "nuget: Soenneker.GitHub.Repositories.Tags, 4.0.949"
#:package Soenneker.GitHub.Repositories.Tags@4.0.949
#addin nuget:?package=Soenneker.GitHub.Repositories.Tags&version=4.0.949
#tool nuget:?package=Soenneker.GitHub.Repositories.Tags&version=4.0.949
Soenneker.GitHub.Repositories.Tags
Create annotated tags from a repository's default branch, list and inspect tags, compare releases, and delete tag references.
Installation
dotnet add package Soenneker.GitHub.Repositories.Tags
Configuration
{
"GH": {
"Token": "github-token"
}
}
Creating or deleting tags requires repository contents write access. Listing and comparing tags requires read access.
Registration
services.AddGitHubRepositoriesTagsUtilAsSingleton();
Use AddGitHubRepositoriesTagsUtilAsScoped() for a scoped consumer.
Create a tag
await tags.Create(
"soenneker",
"example-repository",
"v1.2.0",
cancellationToken);
Create resolves the repository's default branch, creates an annotated Git tag for its current head commit, then creates refs/tags/v1.2.0. The generated annotation message is Tag v1.2.0.
Inspect and compare tags
IReadOnlyList<Tag> allTags = await tags.GetAll(
"soenneker",
"example-repository",
cancellationToken);
CommitComparison changes = await tags.Compare(
"soenneker",
"example-repository",
"v1.1.0",
"v1.2.0",
cancellationToken);
GetAll follows pagination. Tag names are matched case-sensitively. GetTagDetails and GetTagCommit expect annotated tags because they resolve the Git tag object before its commit.
GetLatestStableTag selects the highest tag that System.Version can parse after removing one leading v. Tags containing -rc, -beta, or -alpha are skipped; other semantic-version prerelease or build suffixes are not parsed by System.Version.
Delete permanently removes the named tag reference. It does not delete the commit or any GitHub release associated with that tag.
| 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.Task (>= 4.0.128)
- Soenneker.GitHub.ClientUtil (>= 4.0.625)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.GitHub.Repositories.Tags:
| Package | Downloads |
|---|---|
|
Soenneker.GitHub.Repositories.Releases
Creates, retrieves, deletes, uploads, and downloads GitHub releases and assets |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.950 | 0 | 8/31/2026 |
| 4.0.949 | 0 | 8/31/2026 |
| 4.0.948 | 0 | 8/31/2026 |
| 4.0.947 | 31 | 8/31/2026 |
| 4.0.946 | 33 | 8/31/2026 |
| 4.0.945 | 190 | 8/30/2026 |
| 4.0.944 | 33 | 8/30/2026 |
| 4.0.943 | 751 | 8/30/2026 |
| 4.0.942 | 57 | 8/30/2026 |
| 4.0.941 | 706 | 8/30/2026 |
| 4.0.940 | 90 | 8/30/2026 |
| 4.0.939 | 49 | 8/29/2026 |
| 4.0.938 | 4,507 | 8/29/2026 |
| 4.0.937 | 3,801 | 8/28/2026 |
| 4.0.936 | 1,122 | 8/27/2026 |
| 4.0.935 | 1,031 | 8/26/2026 |
| 4.0.934 | 551 | 8/26/2026 |
| 4.0.933 | 407 | 8/26/2026 |
| 4.0.932 | 528 | 8/25/2026 |
| 4.0.931 | 1,766 | 8/22/2026 |
Update dependency Soenneker.GitHub.ClientUtil to 4.0.625 (#1492)