Skip to content

Reuse an open winget Package Request on rerun - #286

Merged
foodandtravel merged 2 commits into
developmentfrom
fix/winget-reuse-package-request
Oct 30, 2026
Merged

foodandtravel merged 2 commits into
developmentfrom
fix/winget-reuse-package-request

Conversation

@foodandtravel

Copy link
Copy Markdown
Contributor

release-winget files a "[Package Request]: getSigit.siGitCode " issue on every run, then opens the manifest PR that resolves it. So a rerun after a failed run filed the request again. That's how 1.7.7 got three: #465285 and #465415 from the failed run, then #465691 from the good one.

The issue step now looks up the issue account's open request with that exact title. It reuses one if it exists and only files a new one if it doesn't. gh issue list --search narrows the results and a jq match on the full title makes the call, so "1.7" can't match a "1.7.7" request. If the lookup itself errors, set -e fails the step instead of filing a duplicate. The pause between the issue and the PR is skipped when the issue is reused, since it's already old by then.

I ran the lookup against winget-pkgs. With --author setoelkahfi it finds #465691. With an account that has no open request it returns nothing, and a title that only matches as a prefix also returns nothing.

The second commit removes the !npm/**, !pypi/** and !nuget/** lines from the CI path filter. Those directories moved under packaging/ in #282, and !packaging/** already covers them.

This PR doesn't stop a rerun from opening a second manifest PR if wingetcreate already opened one. That didn't happen with 1.7.7, because the failed run never got that far.

foodandtravel and others added 2 commits October 29, 2026 23:04
Every run files a "[Package Request]: getSigit.siGitCode <version>"
issue before opening the manifest PR, so each rerun after a failure
added another one. 1.7.7 ended up with three. The step now looks for the
issue account's open request with that exact title and reuses it. It
only files a new one when there isn't one, and it skips the wait before
the PR when the issue is reused.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
#282 moved npm/, pypi/ and nuget/ under packaging/, which the filter
already ignores.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sigit-code-review

Copy link
Copy Markdown

siGit Code Review couldn't finish this review: the model service was unavailable. Mention @sigit-code-review to try again.


Automated review by siGit Code Review · commit 99acda7 · see the review dashboard

@foodandtravel foodandtravel self-assigned this Oct 29, 2026
@foodandtravel
foodandtravel merged commit e525547 into development Oct 30, 2026
9 checks passed
@foodandtravel
foodandtravel deleted the fix/winget-reuse-package-request branch October 30, 2026 09:30
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.

3 participants