Files
mintlify__docs/zh/help-center/private-repo-missing-when-creating-second-deployment.mdx
mintlify[bot] 68f390b5a3 Update from support feedback: private repo missing on second deployment (#7052)
* docs: add help center article for private repo missing in second deployment onboarding

* docs: translate second-deployment private repo help article and tighten English title

---------

Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
2026-08-21 15:43:03 -07:00

40 lines
2.2 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "创建第二个部署时私有仓库未出现"
description: "重新授权 Mintlify 以获得私有仓库访问权限,使现有的私有 GitHub 仓库出现在新部署的引导仓库选择器中。"
keywords: ["第二个部署", "同一仓库多个部署", "私有仓库未出现", "onboarding 仓库选择器", "授权 GitHub", "private=true", "重新授权 GitHub"]
---
当你从同一个已经支撑现有部署的私有 GitHub 仓库创建第二个 Mintlify 部署时,引导流程中的仓库选择器可能不会列出该私有仓库。这是因为你最初的 GitHub 授权只授予了 `public_repo` 权限,而重新进入引导流程会复用已有授权,而不会再次请求私有仓库访问权限。
你可以从同一个仓库创建多个独立的部署。Mintlify 并不要求每个部署使用一个新仓库。如果需要将多个仓库合并到一个站点,请参考 [Multi-repo 设置](/zh/deploy/multi-repo)。
<div id="re-authorize-with-private-repo-access">
## 使用私有仓库权限重新授权
</div>
在已登录 Mintlify 控制台的情况下访问此 URL:
```
https://app.mintlify.com/api/onboarding/github/authorize?private=true
```
查询参数 `?private=true` 会请求 GitHub 的 `repo` 权限,该权限授予对私有仓库的访问。GitHub 会提示你授权该额外权限,然后将你返回到控制台。
重新授权后:
1. 返回到你新部署的引导流程。
2. 重新打开仓库选择器。你的私有仓库现在可以选择了。
3. 继续完成引导流程以创建第二个部署。
<div id="if-the-repository-still-doesnt-appear">
## 如果仓库仍未出现
</div>
如果重新授权后选择器仍未列出该仓库,则可能需要更新该仓库所在组织上的 Mintlify GitHub App 安装,将该仓库纳入其中:
1. 打开 [GitHub App 设置](https://github.com/apps/mintlify/installations/new),选择拥有该仓库的组织。
2. 在 **Repository access** 下,选择 **All repositories**,或在 **Only select repositories** 中添加该特定仓库。
3. 保存更改,然后重新打开仓库选择器。
如需完全重置 GitHub App 连接,请参见 [GitHub App 连接问题](/zh/deploy/github#github-app-connection-issues)。