fix: forgejo-cli --labels now passes integers instead of strings (fixes #48) #55
No reviewers
Labels
No labels
community-feedback
enhancement
skill-upgrade
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
magnus/agent-skills!55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/forgejo-labels-string-int"
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?
Summary
Fixes #48 — the
--labelsflag was passing string values to the Forgejo API, which expects integers.Changes
forgejo-cli/scripts/forgejo-cli: Synced repo copy with installed version (full feature set). Fixed line 480: labels are now parsed asint()with.isdigit()guard.forgejo-cli/SKILL.md: Added--labelspitfall section, updated Known Gaps table (removed the fixed entry), addedissue create --labelsexample, bumped to v1.1.1.Testing
[int(x.strip()) for x in '8,9'.split(',') if x.strip().isdigit()]→[8, 9]all ints--labels 7— returned 201 withenhancementlabel attached (no 422)