From 7f535482443d7ee1b07262f56264a42f94dec31f Mon Sep 17 00:00:00 2001 From: 15972095207 <2484216370@qq.com> Date: Thu, 4 Jun 2026 08:50:37 +0800 Subject: [PATCH] fix: use correct issue_tag_ids field for issue create --label The GitLink v1 API expects issue_tag_ids (array of integers), not label_id. This fixes the bug where --label was silently ignored when creating issues. Co-Authored-By: Claude Opus 4.8 --- shortcuts/issue/issue.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shortcuts/issue/issue.go b/shortcuts/issue/issue.go index 48a70e49..8a6e6f9c 100644 --- a/shortcuts/issue/issue.go +++ b/shortcuts/issue/issue.go @@ -83,7 +83,10 @@ func Shortcuts() []*common.Shortcut { body["fixed_version_id"] = m } if l := ctx.Arg("label"); l != "" { - body["label_id"] = l + body["issue_tag_ids"] = []int{func() int { + id, _ := strconv.Atoi(l) + return id + }()} } env, err := ctx.CallAPI("POST", v1RepoPath(ctx)+"/issues", body) if err != nil {