promptgarten 🌱
🌍 DE

命令参考 · Claude Code

/install-github-app

为某个仓库安装 Claude GitHub App,可选包含 GitHub Actions 工作流和 Secrets。

为某个仓库安装 Claude GitHub App,可选包含 GitHub Actions 工作流和 Secrets。 会引导完成仓库选择和配置。

什么时候用?

配置自动化 PR 检查或 CI 集成

在团队仓库中执行 /install-github-app,为 Claude 开通通过 GitHub Actions 实现的自动化 PR 工作流。

为后续的 Claude 自动化预先准备仓库访问权限

在新项目中完成 /install-github-app 流程,包括选择仓库和配置 Secrets,以便 /autofix-pr 等工作流可以正常运行。

什么时候不该用?

只在本地工作,不需要 GitHub 集成

/install-github-app 会建立与 GitHub 的连接,并配置可选的 Actions 和 Secrets——如果从不打算通过 GitHub 运行 PR 或 CI,这样做是多余的。

更好的选择: 继续在本地使用 Git 工作,无需安装 GitHub App。

来源