Skip to content

refactor: extract nuget package publish workflow#201

Merged
PrzemyslawKlys merged 1 commit intomainfrom
codex/thin-cmdlets-nuget-publish-main
Mar 11, 2026
Merged

refactor: extract nuget package publish workflow#201
PrzemyslawKlys merged 1 commit intomainfrom
codex/thin-cmdlets-nuget-publish-main

Conversation

@PrzemyslawKlys
Copy link
Member

Summary

  • move Publish-NugetPackage package discovery and push execution into a reusable PowerForge workflow service
  • reuse the existing dotnet/NuGet push outcome classification so duplicate-skip behavior stays aligned with repository release publishing
  • keep the cmdlet focused on PowerShell path resolution, ShouldProcess, and output mapping

Validation

  • dotnet test .\PowerForge.Tests\PowerForge.Tests.csproj -c Release --filter "NuGetPackagePublishServiceTests|DotNetRepositoryReleaseServiceTests|CommentRemovalServiceTests"
  • pwsh .\Module\Build\Build-Module.ps1 -NoSign

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 04b53bb71d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +27 to +30
var roots = (request.Roots ?? Array.Empty<string>())
.Where(path => !string.IsNullOrWhiteSpace(path))
.Distinct(StringComparer.OrdinalIgnoreCase)
.ToArray();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep root deduplication case-sensitive on Unix filesystems

The new service normalizes request.Roots with Distinct(StringComparer.OrdinalIgnoreCase) before file discovery, which can silently drop valid publish roots on case-sensitive filesystems (for example, /repo/Foo and /repo/foo are distinct directories on Linux). In that scenario, packages in the dropped directory are never considered and the cmdlet can incorrectly report no packages found, whereas the previous implementation processed both roots.

Useful? React with 👍 / 👎.

@claude
Copy link

claude bot commented Mar 11, 2026

Code Review: PR 201

@PrzemyslawKlys PrzemyslawKlys merged commit 02e3d9e into main Mar 11, 2026
7 of 8 checks passed
@PrzemyslawKlys PrzemyslawKlys deleted the codex/thin-cmdlets-nuget-publish-main branch March 11, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant