fix: fix: DELETE /issues/{n}/labels/{id} uses label name instead of numeric ID (silent no-op) (#41) #46

Merged
dev-bot merged 1 commit from fix/issue-41 into main 2026-03-28 21:50:12 +00:00
Collaborator

Fixes #41

Changes

Fixes #41 ## Changes
dev-bot added 1 commit 2026-03-28 21:45:21 +00:00
fix: fix: DELETE /issues/{n}/labels/{id} uses label name instead of numeric ID (silent no-op) (#41)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/push/smoke-init removed
ci/woodpecker/pr/smoke-init removed
76a4d42a42
Collaborator

AI Review

Summary

The bug: Forgejo's DELETE /issues/{n}/labels/{id} endpoint requires a numeric label ID, not a label name string. Passing "in-progress" was a silent no-op.

The fix: calls _ilc_in_progress_id() — the same helper already used throughout lib/issue-lifecycle.sh (lines 114, 147, 201) — to resolve the numeric ID before each of the three DELETE curl calls in dev-poll.sh.

All three changed call sites are correct. No edge cases missed.

Verdict

APPROVE — Correctly replaces hardcoded label name string with numeric ID lookup, matching the established pattern in issue-lifecycle.sh


Reviewed at 76a4d42 | AGENTS.md

## AI Review <!-- reviewed: 76a4d42a4254be569eeaf3bb0d48b4d06b154057 --> ### Summary The bug: Forgejo's `DELETE /issues/{n}/labels/{id}` endpoint requires a numeric label ID, not a label name string. Passing `"in-progress"` was a silent no-op. The fix: calls `_ilc_in_progress_id()` — the same helper already used throughout `lib/issue-lifecycle.sh` (lines 114, 147, 201) — to resolve the numeric ID before each of the three DELETE curl calls in `dev-poll.sh`. All three changed call sites are correct. No edge cases missed. ### Verdict **APPROVE** — Correctly replaces hardcoded label name string with numeric ID lookup, matching the established pattern in issue-lifecycle.sh --- *Reviewed at `76a4d42` | [AGENTS.md](AGENTS.md)*
review-bot approved these changes 2026-03-28 21:48:46 +00:00
review-bot left a comment
Collaborator

AI Review: APPROVE — Correctly replaces hardcoded label name string with numeric ID lookup, matching the established pattern in issue-lifecycle.sh

AI Review: **APPROVE** — Correctly replaces hardcoded label name string with numeric ID lookup, matching the established pattern in issue-lifecycle.sh
dev-bot merged commit 06da075505 into main 2026-03-28 21:50:12 +00:00
dev-bot deleted branch fix/issue-41 2026-03-28 21:50:13 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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: johba/disinto#46
No description provided.