docs(label): 子命令描述和注释中文化

This commit is contained in:
刘焱 2026-06-08 19:58:20 +08:00
parent 68e7994d08
commit 7fa93cb3c1
1 changed files with 16 additions and 8 deletions

View File

@ -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.`,