From 7fa93cb3c19083eb52791797e0b9821b1b60e13c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=84=B1?= <1877685089@qq.com> Date: Mon, 8 Jun 2026 19:58:20 +0800 Subject: [PATCH] =?UTF-8?q?docs(label):=20=E5=AD=90=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0=E5=92=8C=E6=B3=A8=E9=87=8A=E4=B8=AD=E6=96=87?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shortcuts/label/label.go | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/shortcuts/label/label.go b/shortcuts/label/label.go index 198a2d6..650a72d 100644 --- a/shortcuts/label/label.go +++ b/shortcuts/label/label.go @@ -8,9 +8,10 @@ import ( func Shortcuts() []*common.Shortcut { return []*common.Shortcut{ + // +list:列出仓库的疑修标签 { Name: "list", - Description: "List repository issue labels (tags)", + Description: "列出仓库的疑修标签", Long: `List repository issue labels (tags). Returns all labels defined in the repository.`, @@ -27,9 +28,10 @@ Returns all labels defined in the repository.`, return ctx.Output(env) }, }, + // +create:创建疑修标签 { Name: "create", - Description: "Create an issue label", + Description: "创建疑修标签", Long: `Create an issue label. Creates a new label with the given name. @@ -64,9 +66,10 @@ Optionally specify a color in hex format (without #).`, return ctx.Output(env) }, }, + // +update:更新疑修标签 { Name: "update", - Description: "Update an issue label", + Description: "更新疑修标签", Long: `Update an issue label. Updates the name and/or color of an existing label. @@ -103,9 +106,10 @@ At least one of --name or --color should be provided.`, return ctx.Output(env) }, }, + // +delete:删除疑修标签 { Name: "delete", - Description: "Delete an issue label", + Description: "删除疑修标签", Long: `Delete an issue label. Permanently removes the label from the repository.`, @@ -129,9 +133,10 @@ Permanently removes the label from the repository.`, return ctx.Output(env) }, }, + // +priorities:列出可用的疑修优先级 { Name: "priorities", - Description: "List available issue priorities", + Description: "列出可用的疑修优先级", Long: `List available issue priorities. Returns the priority levels that can be assigned to issues.`, @@ -148,9 +153,10 @@ Returns the priority levels that can be assigned to issues.`, return ctx.Output(env) }, }, + // +statuses:列出可用的疑修状态 { Name: "statuses", - Description: "List available issue statuses", + Description: "列出可用的疑修状态", Long: `List available issue statuses. Returns the status values that issues can have @@ -168,9 +174,10 @@ Returns the status values that issues can have return ctx.Output(env) }, }, + // +authors:列出可用的疑修作者 { Name: "authors", - Description: "List available issue authors", + Description: "列出可用的疑修作者", Long: `List available issue authors. Returns the users who have authored issues in the repository.`, @@ -187,9 +194,10 @@ Returns the users who have authored issues in the repository.`, return ctx.Output(env) }, }, + // +assigners:列出可用的疑修复办人 { Name: "assigners", - Description: "List available issue assigners", + Description: "列出可用的疑修复办人", Long: `List available issue assigners. Returns the users who can be assigned to issues in the repository.`,