Add `Unpublish-PSResource` command to unlist/hide module versions programmatically
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu bằng cách đọc các đường dẫn lệnh hiện có của Publish-PSResource và Find-PSResource, sau đó kiểm tra hành vi unlisting và quyền của PowerShell Gallery API. Hoàn thành khi Unpublish-PSResource có thể nhắm đến các phiên bản stable hoặc prerelease cụ thể, chấp nhận API key và xử lý đầu vào pipeline cho nhiều resource.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary of the new feature / enhancement
As a PowerShell user automating module publishing workflows, I want a command to quickly unlist or hide specific versions of a module (such as prereleases after the full version is published), so that I can ensure only relevant versions are visible on the PowerShell Gallery without manual UI steps.
Currently, unlist functionality exists in the PowerShell Gallery UI and is also supported via API key permissions, but there is no native PowerShell command to do this in automation scenarios. This limits streamlined management when transitioning from prerelease to stable versions or when hiding obsolete/pre-release versions is required within CI/CD systems.
Proposed technical implementation details (optional)
Add a new cmdlet named Unpublish-PSResource. It should accept similar parameters as Find-PSResource, with the addition of -ApiKey (similar to Publish-PSResource). This command would use the API key (with appropriate unlist permission) to programmatically unlist or hide the specified package version on the Gallery.
The command should support:
- Specifying a specific version (including prerelease versions) to unlist
- Pipeline input from
Find-PSResourceto unpublish multiple resources at once
Example usage:
Unpublish-PSResource -Repository PSGallery -ApiKey $APIKey -Name $moduleName -Version 2.0.1 -Prerelease
# Unpublish multiple versions via pipeline
Find-PSResource -Name $moduleName -Version "2.0.1" -Prerelease | Unpublish-PSResource -Repository PSGallery -ApiKey $APIKey
This feature would greatly improve automation workflows for module publishers and mirror the manual UI and API support for unlisting that already exists.
- Ngôn ngữ chính
- C#
- Star
- 577
- Fork
- 114
- Merge trung bình
- 23 giờ 17 phút
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PowerShell/PSResourceGet
-
Create parent directories only after the containment check in InstallHelper.TryExtractToDirectoryĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
PowerShell/PSResourceGet#2056 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature_request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
PowerShell/PSResourceGet#2013 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Needs-Triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
PowerShell/PSResourceGet#2060 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Needs-Triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
PowerShell/PSResourceGet#2059 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Use GitHub app token to authenticate to GitHub resourcesCó thể đã có người làm @adityapatwardhan đã nhận 12 ngày trước. Đang mởfeature_request Needs-Triage
PowerShell/PSResourceGet#2057 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của PowerShell/PSResourceGet
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
elsa-workflows/elsa-core#8593 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
WebSocket upgrade check is case-sensitive for `Upgrade`Có thể đã có người làm @S0CloseYetS0Far đã nhận hôm nay. Đang mởbug good first issue severity:low
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
-
example mod Controller SupportĐang mởNEW ISSUE Requestor-TML Maintainers Type: Change/Feature Request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
tModLoader/tModLoader#5476 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Issue-Enhancement Needs-Triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
PowerShell/PowerShell#28138 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
SubtitleEdit/subtitleedit#15600 ·
Maintainer thường phản hồi trong vòng 1 ngày