winget-pr-retry
WinGet PR(microsoft/winget-pkgs)のCI/CDパイプラインを空プッシュで再トリガーすることで、リリースをリトライする。使用タイミング:(1) WinGet PRの自動実行がエラーになった場合、(2) microsoft/winget-pkgsへのPRでCI/CDを再実行したい場合、(3) リリースプロセスでWinGet検証を再トリガーする必要がある場合
Security Assessment
About winget-pr-retry
The 'winget-pr-retry' skill provides a streamlined solution for re-triggering the CI/CD pipeline of WinGet pull requests (PRs) in the microsoft/winget-pkgs repository. It addresses the common issue where automatic execution of WinGet PRs fails due to transient errors or interruptions in the CI/CD process. By allowing users to push an empty commit, the skill effectively restarts the pipeline without requiring manual intervention or modifications to the codebase. This ensures that PRs can be retried reliably, maintaining the integrity and continuity of the release workflow.
The core capability of this skill is its PowerShell script, which automates the process of navigating to the 'external/winget-pkgs' submodule, checking out the desired branch, creating an empty commit, and pushing it to trigger the CI/CD pipeline. Users can optionally specify the branch name and a custom commit message, providing flexibility for different workflows and scenarios. The skill simplifies what would otherwise be a manual, error-prone process, making it faster and less prone to mistakes. It leverages standard git commands and integrates seamlessly into existing WinGet PR processes.
Typical use cases include retrying failed automatic WinGet PR runs, manually re-executing CI/CD for a specific PR, or retriggering the WinGet validation during the release process. The skill is targeted at developers and release engineers who manage the microsoft/winget-pkgs repository, particularly those involved in automated CI/CD workflows. It is also useful for contributors who need to ensure that their PR validations complete successfully without introducing new changes, providing a reliable tool for maintaining build and release consistency.
FAQ
How do I run the winget-pr-retry script?
You can run the script using PowerShell: `./skills/winget-pr-retry/scripts/Retry-WinGetPR.ps1`. Optional parameters allow specifying the branch name and commit message.
Can I retry a specific branch instead of the current one?
Yes, use the `-BranchName` parameter to specify the branch you want to retry. If omitted, the script uses the current branch.
What is the default commit message when retrying a PR?
The default message is 'Empty commit to retrigger CI/CD pipeline'. You can customize it using the `-Message` parameter.
Are there any prerequisites for using this skill?
You need PowerShell Core and git installed, and your repository should include the 'external/winget-pkgs' submodule.
Will this script modify my existing code changes?
No, the script only creates an empty commit to retrigger the CI/CD pipeline and does not alter any existing code.
Install winget-pr-retry
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
nuitsjp/GistGet