[PR #256] [CLOSED] feat(pr-risk): add safe label migration CLI #260

Closed
opened 2026-10-26 22:37:51 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Comfy-Org/github-workflows/pull/256
Author: @huang47
Created: 9/2/2026
Status: ❌ Closed

Base: main ← Head: cx/risk-label-migration-cli


📝 Commits (1)

  • 1086285 feat(pr-risk): add safe label migration CLI

📊 Changes

4 files changed (+263 additions, -1 deletions)

View changed files

📝 .github/workflows/test-pr-risk.yml (+4 -1)
📝 scripts/pr-risk/README.md (+13 -0)
➕ scripts/pr-risk/migrate-risk-labels.sh (+140 -0)
➕ scripts/pr-risk/tests/test_migrate_risk_labels.sh (+106 -0)

📄 Description

Summary

  • add a dry-run-by-default CLI for migrating risk:R0 through risk:R3 assignments to named labels
  • add and verify the target before removing the source
  • paginate all PRs, preserve unrelated labels, and fail on migration errors or residual assignments

Usage

bash scripts/pr-risk/migrate-risk-labels.sh OWNER/REPO
bash scripts/pr-risk/migrate-risk-labels.sh OWNER/REPO --apply

Live dry-run on Comfy-Org/ComfyUI_frontend: 55 assignments, no writes.

Validation

  • ShellCheck
  • migration suite: 10 assertions
  • all existing PR-risk suites
  • git diff --check

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Comfy-Org/github-workflows/pull/256 **Author:** [@huang47](https://github.com/huang47) **Created:** 9/2/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `cx/risk-label-migration-cli` --- ### 📝 Commits (1) - [`1086285`](https://github.com/Comfy-Org/github-workflows/commit/1086285aea36e34651f0e2bd480f320f14192c9f) feat(pr-risk): add safe label migration CLI ### 📊 Changes **4 files changed** (+263 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/test-pr-risk.yml` (+4 -1) 📝 `scripts/pr-risk/README.md` (+13 -0) ➕ `scripts/pr-risk/migrate-risk-labels.sh` (+140 -0) ➕ `scripts/pr-risk/tests/test_migrate_risk_labels.sh` (+106 -0) </details> ### 📄 Description ## Summary - add a dry-run-by-default CLI for migrating `risk:R0` through `risk:R3` assignments to named labels - add and verify the target before removing the source - paginate all PRs, preserve unrelated labels, and fail on migration errors or residual assignments ## Usage ```bash bash scripts/pr-risk/migrate-risk-labels.sh OWNER/REPO bash scripts/pr-risk/migrate-risk-labels.sh OWNER/REPO --apply ``` Live dry-run on `Comfy-Org/ComfyUI_frontend`: 55 assignments, no writes. ## Validation - ShellCheck - migration suite: 10 assertions - all existing PR-risk suites - `git diff --check` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-26 22:37:51 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/github-workflows#260
No description provided.