Label resolver: one of its three head comparisons does not fold case, and edited PRs never reconcile
維護者通常 3 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1 小時以內
- 新手友好度
- 25/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- github-actions, typescript
- 領域
- ci-cd
研究方向
The pull_request_target types are listed in label-pr-review-state.yml (lines 21-33), and the head-branch comparison is in the resolver those tests exercise. Read pr-review-state-workflow.test.ts (around lines 4398-4410) and fork-review-followup-workflow.test.ts (around lines 216-230). Done means both case-insensitive matching and the edited type are covered by passing tests. Open PR #2489 already carries the resolver fix and awaits approval, so coordinate there first.
由索引模型根據 Issue 內容生成。
描述
What happens
-
The resolver that decides whether a
workflow_runbelongs to a PR compares head branch, head SHA and base repository; two fold case andpr.head?.ref === run.head_branchdoes not. A run whose branch differs only in case resolves to "no PR", and that PR never learns its checks finished. -
Reconcile never runs when a PR's title or body is edited. The
pull_request_targettypes areopened, reopened, ready_for_review, converted_to_draft, synchronize, review_requested, review_request_removed, labeled, unlabeled(label-pr-review-state.yml:21-33) - noedited. A description fix does not refresh the labels a maintainer reads.
Evidence
- Case: two CI-run tests in #2489 -
pr-review-state-workflow.test.ts:4398-4410andfork-review-followup-workflow.test.ts:216-230. edited: the trigger block above, read at head2b70528c00; noeditedappears underpull_request_target.is:issue is:open workflow_run reconcile labelsreturns nothing, and #1707, #2046, #2086 and #2133 - cited by these workflows' comments - are all closed. Nothing open tracks either defect, which is why #2489 says "Closes: # none".
Where the fix is
#2489 carries the resolver fix (4 files, +433/-17; 23/23 checks success at 18:30Z) and waits on a human approval. Adding edited to that same trigger block is a one-line change and is not part of that PR.
Limits
- Not a claim that the label service fails generally: it reconciles on push, review and comment events plus the hourly sweep. The gaps are case-sensitive branch matching and the missing
editedtype. - A fork account cannot label, merge or edit a workflow file; this states only what the files say.
- 主要語言
- TypeScript
- 星號
- 2k
- 分支
- 301
- 平均合併
- 3 天 14 小時
- 30 天內合併 PR
- 103
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
Zoo-Code-Org/Zoo-Code 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 70/100
Zoo-Code-Org/Zoo-Code#2773 · 1 則留言 ·
維護者通常 3 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
Zoo-Code-Org/Zoo-Code#2717 · 1 則留言 ·
維護者通常 3 天內回覆
-
難度 2/5 1-3 小時 新手友好度 77/100
Zoo-Code-Org/Zoo-Code#2515 ·
維護者通常 3 天內回覆
-
fix(scripts): stryker-diff.mjs spawns the extensionless .bin shim and cannot run on Windows可能已有人在做 @easonLiangWorldedtech 於 16 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
Zoo-Code-Org/Zoo-Code#2514 ·
維護者通常 3 天內回覆
-
[BUG] search_files hides matching text on long lines可能已有人在做 @DananjayaNadun 於 9 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 74/100
Zoo-Code-Org/Zoo-Code#2496 · 1 則留言 · 已指派 1 人 ·
維護者通常 3 天內回覆
查看 Zoo-Code-Org/Zoo-Code 的全部 Issue
相似的 Issue
-
enhancement feature/signals self-driving team/self-driving
難度 2/5 1-3 小時 新手友好度 78/100
PostHog/posthog#144208 · 1 則留言 ·
維護者通常 1 天內回覆
-
bug good first issue web
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
triage: not actionable
難度 2/5 1-3 小時 新手友好度 66/100
oxc-project/oxc#30518 · 1 則留言 ·
維護者通常 1 天內回覆
-
bug Claude useability
難度 2/5 1-3 小時 新手友好度 78/100
-
難度 2/5 1-3 小時 新手友好度 70/100
wazuh/wazuh-dashboard-plugins#9751 ·
維護者通常 1 天內回覆