fix: DELETE /issues/{n}/labels/{id} uses label name instead of numeric ID (silent no-op) #41
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
Three places in
dev/dev-poll.shcallDELETE /issues/{n}/labels/in-progressusing the label name as the URL path segment. Forgejo expects the numeric label ID. The calls return 404, silently swallowed by|| true, so thein-progresslabel is never removed.Locations
dev/dev-poll.shline 160 (formula guard cleanup)dev/dev-poll.shline 329 (orphan skip-label cleanup)dev/dev-poll.shline 404 (wrong-assignee cleanup, added in #38)All three look like:
Fix
Look up the numeric ID first using the helper from
lib/issue-lifecycle.sh, then use it in the DELETE URL. The pattern already exists in the codebase:dev-poll.shalready sourceslib/issue-lifecycle.sh, so the helper is available.Affected files
dev/dev-poll.sh— fix 3 DELETE calls (lines ~160, ~329, ~404)