GitHub Sentinel 是一个用于监控 GitHub 仓库更新的工具。它可以订阅仓库,定期检查更新,并通知用户最新的发布信息。
-
订阅仓库:添加你感兴趣的 GitHub 仓库到订阅列表。
Subscribe to Repositories: Add GitHub repositories you are interested in to the subscription list. -
定期检查更新:自动定期检查订阅仓库的更新。
Regularly Check for Updates: Automatically check for updates to subscribed repositories at regular intervals. -
通知用户:通过配置的通知方法,通知用户最新的发布信息。
Notify Users: Notify users of the latest release information through configured notification methods. -
交互式命令行工具:提供简单易用的命令行界面,方便用户管理订阅。
Interactive Command Line Tool: Provides an easy-to-use command line interface for users to manage subscriptions. -
每日进展导出:导出订阅项���的 issues 和 pull requests 列表到 Markdown 文件。
Daily Progress Export: Export the list of issues and pull requests for subscribed projects to a Markdown file. -
生成正式报告:调用 GPT-4 API 生成项目每日报告。
Generate Formal Reports: Call the GPT-4 API to generate daily reports for the project.
-
克隆仓库:
- Clone the repository:
git clone https://github.com/yourusername/GitHubSentinel.git cd GitHubSentinel
-
安装依赖:
2. Install dependencies:pip install -r requirements.txt
在运行工具之前,请确保设置环境变量 GITHUB_API_KEY
和 NOTIFICATION_METHOD
。例如:
Before running the tool, make sure to set the environment variables GITHUB_API_KEY
and NOTIFICATION_METHOD
. For example:
要运行 GitHub Sentinel,您可以使用以下方法之一:
-
命令行:在终端中运行以下命令:
Command Line: Run the following command in your terminal:python src/command_tool.py
-
其他方法:根据您的需求选择其他运行方式。
守护进程将根据配置文件 config.json
中的设置,定期拉取订阅的 GitHub 仓库更新。