https://images.ctfassets.net/spoqsaf9291f/53kYM8iHg8JMkNM7uFq5DD/9446c583210cf8e1a1e3f72ebf1bcf0e/Connectors_for_GitHub__1_.png

简介

Learn how to unlock your GitHub knowledge in Notion AI 🤖


<aside> <img src="/icons/hand_gray.svg" alt="/icons/hand_gray.svg" width="40px" />

**注意:**目前,Notion AI 连接器对现有 Notion AI 付费用户免费提供,但价格可能会发生变化。

</aside>

How do I connect my GitHub organization?

Note: When connecting GitHub to Notion AI for the first time, you must be a Notion workspace owner and a GitHub organization owner. Once the connection is made, members of your Notion workspace can connect repositories that they have access to.

If you're a Notion workspace owner and GitHub owner

To connect GitHub to your Notion workspace:

  1. 在 Notion 中,在屏幕底部点开 Notion AI,然后选择 ••• → 连接 GitHub。你也可以进入 设置连接工作空间连接 标签,然后在 GitHub 下面点击 连接。你将被带到 GitHub。不要在配置过程中关闭 Notion!
  2. 在打开的页面中,连接 Github 并选择你想同步的组织。
  3. Select All repositories (recommended) or Select repositories, then select Install.

Once the integration is set up, it will be able to index PRs and issues going back a year from when the setup is complete. You’ll also have access to all code files including markdown files and READMes with no time restrictions.

<aside> <img src="/icons/hand_gray.svg" alt="/icons/hand_gray.svg" width="40px" />

**注意:**目前,Wikis 百科尚未支持。

</aside>

It can take up to 72 hours for the connection to complete. Afterwards, each user in your Notion workspace must authenticate with GitHub individually to use the integration, and their permissions will be mapped accordingly.

如果你是 Notion 工作空间的成员

If you aren’t the owner of your Notion workspace or your GitHub organization, you’ll need an owner to connect Notion with GitHub first before you can use the integration. Once the integration has been set up by an owner, you’ll have to log in to connect your private repositories. To do this:

  1. In Notion, open Notion AI at the bottom of your screen and click on ••• → Connect GitHub.
  2. Select Log In and connect your GitHub account.