feat(issues): attach labels, assignee and milestone on create #17
No reviewers
Labels
No labels
area/dsh
area/forgejo
experiment
priority/later
priority/next
priority/now
type/bug
type/task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
dsh-plugins/dsh-gitea!17
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/6-issue-create-labels"
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?
What
gitea_issue_createcould not attachlabels,assigneeormilestone: the tool definition did not declare them (so the harness dropped them) and the handler forwarded onlytitle/body.This PR:
labels(array of names or numeric ids),assignee(login) andmilestone(number);listLabels(limit 100), keeps numeric ids, preserves the caller's order and deduplicates;milestoneis numeric;#1 "…" opened with labels [type/bug] assigned to @dsh milestone #2 (Probe #6).Verification
test/issue-create.test.mjs: name resolution (case-insensitive), mixed name/id ordering, dedup, unknown-name failure (no create call), non-array labels, assignee/milestone forwarding, invalid milestone, echo output, label-less echo.npm test74/74, leak scan clean,node --checkclean.ml-lab/tardits:labels: ["TYPE/BUG", "does-not-exist"]→unknown label name(s): does-not-exist…, no issue created;labels: ["TYPE/BUG"], assignee: "dsh", milestone: 2→#1 "…" opened with labels [type/bug] assigned to @dsh milestone #2 (Probe #6);Acceptance (from #6)
Closes #6.