Merged
Conversation
Agent-Logs-Url: https://github.com/Tyrrrz/PowerKit/sessions/63a61da8-02a7-423b-b5a5-351626d13f14 Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
Tyrrrz
April 17, 2026 07:05
View session
Tyrrrz
reviewed
Apr 17, 2026
Agent-Logs-Url: https://github.com/Tyrrrz/PowerKit/sessions/5aff834e-f4bf-4238-9a25-1d5fa81dc29f Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a System.Version extension for formatting “semantic” version strings by omitting the revision component when appropriate, along with accompanying unit tests.
Changes:
- Introduces
VersionExtensions.ToSemanticString()forSystem.Version. - Adds unit tests covering revision omitted/kept behavior (including zero revision).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| PowerKit/Extensions/VersionExtensions.cs | Adds ToSemanticString() extension implementation for Version. |
| PowerKit.Tests/VersionExtensionsTests.cs | Adds xUnit/FluentAssertions coverage for the new extension method. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## prime #42 +/- ##
==========================================
+ Coverage 94.47% 94.63% +0.16%
==========================================
Files 76 82 +6
Lines 1574 1623 +49
Branches 131 135 +4
==========================================
+ Hits 1487 1536 +49
Misses 65 65
Partials 22 22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Owner
|
@copilot please fix formatting |
Agent-Logs-Url: https://github.com/Tyrrrz/PowerKit/sessions/500b5bf8-fc0f-40f0-afd9-542103faf64c Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
Contributor
Author
This was referenced May 1, 2026
This was referenced May 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports
VersionExtensionsfrom CliFx — aToSemanticString()extension onSystem.Versionthat omits the revision component when it is unset.Changes
VersionExtensions.cs— new extension; returnsversion.ToString(3)whenRevision <= 0, otherwiseversion.ToString()VersionExtensionsTests.cs— covers no-revision, zero-revision, and non-zero-revision cases