fix: fix: duplicated label ID lookup — ensure_blocked_label_id vs _ilc_ensure_label_id (#282) #292
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#292
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-282"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #282
Changes
AI Review — Error\n\nReview failed.\n---\n
7dbd6c2AI Review
Summary\n\nRemoves
ensure_blocked_label_id()fromlib/ci-helpers.sh— a duplicate of_ilc_blocked_id()/_ilc_ensure_label_id()inlib/issue-lifecycle.sh. Both functions looked up (or created) a label namedblockedwith color#e11d48and cached the result. Also removes the stale cross-reference comment inissue-lifecycle.sh.\n\n### Verification\n\n- Grepped the entire repo forensure_blocked_label_id— zero remaining callers. The removal is safe.\n- The surviving implementation (_ilc_blocked_id()→_ilc_ensure_label_id()) is more general (handles any label name/color via an associative array cache) and is already used byissue_block(),issue_claim(), andissue_release().\n- No logic changes — pure dead-code removal.Verdict
APPROVE — Correctly removes duplicate ensure_blocked_label_id() with no remaining callers; issue-lifecycle.sh already covers blocked label lookup via _ilc_blocked_id()/_ilc_ensure_label_id().
Reviewed at
7dbd6c2| AGENTS.mdAI Review: APPROVE — Correctly removes duplicate ensure_blocked_label_id() with no remaining callers; issue-lifecycle.sh already covers blocked label lookup via _ilc_blocked_id()/_ilc_ensure_label_id().