mcpField
L
labels

labels

github.com/deevus开发12125 次安装22 周前更新
代码仓库

关于 labels

labels 是使用 tea 命令行管理标签的技能,涵盖标签的列表、创建、更新、删除,以及为议题添加或移除标签。

主要功能

  1. 01以简洁或 JSON 格式列出标签
  2. 02单独创建标签或从文件导入
  3. 03更新标签名称、颜色和描述
  4. 04删除标签
  5. 05为议题添加或移除标签

适用场景

  1. 01导出或查看仓库标签
  2. 02从 CSV 文件导入标签
  3. 03更新标签元数据
  4. 04使用标签整理议题

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/deevus/tea-skills --skill labels

安装后在 Claude Code 中输入/labels确认已加载。

详细介绍

标签

列表

tea labels list -o simple          # all labels, compact output (recommended)
tea labels list --output json      # use json only when parsing with jq
tea labels list --save             # export to file (tea internal format)

创建

tea labels create --name "bug" --color "#d73a4a"
tea labels create --name "enhancement" --color "#a2eeef" --description "New feature or request"
tea labels create --file labels.csv   # bulk import from file

更新

# Get label ID (requires json for parsing)
tea labels list --output json | jq '.[] | {id, name, color}'

tea labels update --id 5 --name "bugfix" --color "#d73a4a"
tea labels update --id 5 --description "Updated description"

删除

tea labels delete 5

应用于议题

tea issues create --title "Fix login" --labels "type:bug,priority:high"
tea issues edit 42 --add-labels "status:in-progress"
tea issues edit 42 --remove-labels "status:needs-triage"

提示

  • 在 tea issues 中通过名称识别标签,在 tea labels update/delete 中通过 ID 识别标签
  • 颜色需要带 # 前缀(例如,#d73a4a)
  • 名称区分大小写
  • 删除标签会将其从所有议题/PR 中移除

评论

支持 Markdown