bug: forgejo-cli — --labels flag passes string values instead of integers #48
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#48
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?
Summary
The forgejo-cli issue create command passes label IDs as strings when the Forgejo API expects integers.
Root Cause
In the argument parser (line 480 of the CLI script):
This produces
["8"]but the Forgejo API expects[8].Steps to Reproduce
Returns:
API error (422): cannot unmarshal string into Go struct field CreateIssueOption.labels of type int64Fix
Convert label values to integers:
Found during SkillOpt omnibus PR workflow.