[PR #253] [CLOSED] fix(pr-risk): retire default labels after remap #258

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/253
Author: @huang47
Created: 9/2/2026
Status: ❌ Closed

Base: main ← Head: cx/risk-label-map-variable


📝 Commits (3)

  • cbdc39e feat(pr-risk): allow repository label maps
  • 0310a63 docs(pr-risk): use risk unknown label
  • e7b8a69 refactor(pr-risk): reuse label map input

📊 Changes

5 files changed (+27 additions, -12 deletions)

View changed files

📝 .github/workflows/pr-risk.yml (+3 -2)
📝 docs/callers/pr-risk.md (+6 -0)
📝 scripts/pr-risk/README.md (+3 -5)
📝 scripts/pr-risk/apply-risk-label.sh (+4 -5)
📝 scripts/pr-risk/tests/test_apply_risk_label.sh (+11 -0)

📄 Description

Summary:

  • reuse the existing label_map input; add no new configuration surface
  • retire the default risk:R0 through risk:R3 and risk:ungraded labels on the first remapped grade so a PR keeps one grader-owned label
  • document the named-label mapping while keeping R0–R3 as the internal grades

Caller mapping:
R0=risk:low,R1=risk:medium,R2=risk:high,R3=risk:xhigh,unknown=risk:unknown

Validation:

  • ShellCheck passed for all PR-risk scripts and suites
  • all 414 PR-risk assertions passed
  • all 28 pin-contract assertions passed
  • workflow-pin lint passed

🔄 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/253 **Author:** [@huang47](https://github.com/huang47) **Created:** 9/2/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `cx/risk-label-map-variable` --- ### 📝 Commits (3) - [`cbdc39e`](https://github.com/Comfy-Org/github-workflows/commit/cbdc39e79039af558a56766a116fb3e337687359) feat(pr-risk): allow repository label maps - [`0310a63`](https://github.com/Comfy-Org/github-workflows/commit/0310a63e07e876e2da96fc4b0c3e8a8c2831100c) docs(pr-risk): use risk unknown label - [`e7b8a69`](https://github.com/Comfy-Org/github-workflows/commit/e7b8a69e389eb9c4410af720f26d2dfd78af054a) refactor(pr-risk): reuse label map input ### 📊 Changes **5 files changed** (+27 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pr-risk.yml` (+3 -2) 📝 `docs/callers/pr-risk.md` (+6 -0) 📝 `scripts/pr-risk/README.md` (+3 -5) 📝 `scripts/pr-risk/apply-risk-label.sh` (+4 -5) 📝 `scripts/pr-risk/tests/test_apply_risk_label.sh` (+11 -0) </details> ### 📄 Description Summary: - reuse the existing `label_map` input; add no new configuration surface - retire the default `risk:R0` through `risk:R3` and `risk:ungraded` labels on the first remapped grade so a PR keeps one grader-owned label - document the named-label mapping while keeping R0–R3 as the internal grades Caller mapping: `R0=risk:low,R1=risk:medium,R2=risk:high,R3=risk:xhigh,unknown=risk:unknown` Validation: - ShellCheck passed for all PR-risk scripts and suites - all 414 PR-risk assertions passed - all 28 pin-contract assertions passed - workflow-pin lint passed --- <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#258
No description provided.