remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Integrations
Manages environment variables for configuring GitHub and Notion API authentication and other sensitive settings.
Enables automated review of Pull Requests through the GitHub API, with capabilities to analyze code changes and provide feedback.
Integrates with Notion's workspace to store, organize, and track PR review data using Notion's database capabilities.
PR 审阅者设置指南
本指南提供了设置 PR Reviewer 项目的分步说明,其中包括与 GitHub 和 Notion 的集成。
先决条件
curl
(适用于 MacOS/Linux)- 您的系统上安装了 Python 3.x
设置说明
步骤1:安装uv
MacOS/Linux:
🔁 之后重新启动终端以确保
uv
命令可用。
步骤 2:创建并设置项目
MacOS/Linux:
步骤 3:创建requirements.txt
并从中安装
创建一个名为requirements.txt
的文件,其内容如下:
安装软件包:
步骤4:设置环境变量
在根目录中创建一个.env
文件并添加以下内容:
GitHub 令牌:
- 转到 GitHub → 设置 → 开发者设置 → 个人访问令牌。
- 点击**“生成新令牌(经典)”** 。
- 启用这些范围:
read:org
read:repo_hook
repo
- 将令牌复制并粘贴到您的
.env
文件中作为GITHUB_TOKEN
。
概念整合:
- 转到Notion Integrations 。
- 单击**“新集成”并将类型设置为“内部”** 。
- 将其添加到您的工作区。
- 将内部集成密钥复制为
NOTION_API_KEY
。 - 将集成 URL 末尾的 UUID复制为
NOTION_PAGE_ID
。
步骤 5:创建主脚本
为您的服务器逻辑创建一个空脚本文件:
在此文件中添加您的应用程序逻辑。
步骤6:运行应用程序
要运行项目,请确保您的环境已激活并且.env
已配置:
This server cannot be installed
一种与 GitHub 和 Notion 集成的工具,用于分析和审查拉取请求,从而实现 Notion 中的自动代码审查和文档记录。