SuperAPI AI 工具集

sub-issue

通用与其它

查看项目

更新于 10-16 03:44

技能介绍

用途:通过 gh CLI 的原生子议题功能管理 GitHub 子议题(子议题即 child issues),在用户要求为某个父议题创建、列出、添加或移除子议题时使用。使用前须确认 gh 版本不低于 v2.94.0,可运行 gh --version 检查;低于该版本则原生子议题参数(--parent、--add-sub-issue、--remove-sub-issue、--remove-parent)不可用,应提示用户先升级 gh。主要能力与命令:创建新子议题用 gh issue create --parent <parent-issue> --title "<title>" --body "<body>" --repo posit-dev/py-shiny,可用 --label、--assignee、--milestone、--project 等参数;将已有议题添加为子议题用 gh issue edit <parent-issue> --add-sub-issue <child-issue> --repo posit-dev/py-shiny;设置或更改某议题的父议题用 gh issue edit <child-issue> --parent <parent-issue> --repo posit-dev/py-shiny;列出父议题的子议题用 gh issue view <parent-issue> --json subIssues,subIssuesSummary --repo posit-dev/py-shiny;移除子议题链接用 gh issue edit <parent-issue> --remove-sub-issue <child-issue> --repo posit-dev/py-shiny;移除某议题的父议题用 gh issue edit <child-issue> --remove-parent --repo posit-dev/py-shiny。使用注意:始终带上 --repo posit-dev/py-shiny 以确定仓库上下文;批量创建多个子议题时应逐个顺序创建,避免触发速率限制;多行正文可配合 heredoc 使用 --body,并在正文中引用父议题(例如“Part of #123”)以提供上下文。限制:功能依赖 gh v2.94.0 及以上,旧版本不可用;具体标签、指派人、里程碑、项目等参数需由用户提供,资料未提供默认值。