SuperAPI AI 工具集

github

通用与其它

查看项目

更新于 10-16 06:52

技能介绍

用途:该技能用于在各类 GitHub 相关工作中提供统一操作规范,覆盖 gh CLI、API、Actions、issue 与 PR 等场景,要求在处理 GitHub 任务时始终启用。

主要能力与用法:使用 gh CLI 与 GitHub 交互(issue、PR、release 等),并在沙箱外执行 gh 命令。处理 GitHub Actions 时,应检查并使用至少已发布 7 天的最新 Actions 版本,可用 pinact run -update --min-age 7 实现。查看 PR 一般对话时间线(非行级审查评论)时,使用 gh pr view --comments 或 REST /issues/N/comments 端点。需要读取带已解决状态的行级审查评论(例如分诊机器人或人工反馈)时,用一次 GraphQL 调用获取:gh api graphql -f query='query { repository(owner: "OWNER", name: "REPO") { pullRequest(number: N) { reviewThreads(first: 100) { nodes { id isResolved path line comments(first: 1) { nodes { author { login } body } } } } } } }' --jq '.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false)'。当用户明确要求“关闭”或“解决”某条审查评论时,通过 GraphQL mutation 解决线程(除非被指示,否则不要回复评论):gh api graphql -f query='mutation($id: ID!) { resolveReviewThread(input: { threadId: $id }) { thread { isResolved } } }' -f id="PRRT_..."。线程 ID 以 PRRT_ 开头,可用 unresolveReviewThread 重新打开。此外,可通过运行 zizmor . 审计 GitHub Actions 安全性。

适用场景:需要以命令行方式管理 GitHub 仓库协作流程、审查反馈与 Actions 安全性的开发与运维工作。

限制:资料未提供该技能的安装方式、依赖要求、收费与平台支持等信息。