fix: duplicated label ID lookup — ensure_blocked_label_id vs _ilc_ensure_label_id #282
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#282
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Problem
lib/ci-helpers.sh:13 defines ensure_blocked_label_id() with cache _BLOCKED_LABEL_ID.
lib/issue-lifecycle.sh:55 defines _ilc_ensure_label_id() with cache _ILC_LABEL_IDS.
Both create the 'blocked' label if missing. Both are sourced by dev-poll.sh, so the caches are independent and can cause duplicate API calls.
Fix
Remove ensure_blocked_label_id() from ci-helpers.sh. Update its callers to use _ilc_ensure_label_id from issue-lifecycle.sh (which is the more general implementation supporting any label name).
Affected files
Acceptance criteria