1
0
mirror of https://github.com/hustcer/deepseek-review.git synced 2026-05-13 05:16:05 +08:00

Update README and bump to v1.5 (#69)

This commit is contained in:
Justin Ma
2025-02-01 15:06:07 +08:00
committed by GitHub
parent eba892d969
commit f9f66ccc4c
4 changed files with 33 additions and 9 deletions

View File

@@ -1,6 +1,26 @@
# Changelog
All notable changes to this project will be documented in this file.
## [1.5.0] - 2025-02-01
### Documentation
- Update README (#61)
### Features
- Add example of triggering code review by adding `ai review` label (#60)
- Load multi-line prompts from yaml config for local code reviewing (#67)
- Add `include` and `exclude` for file pattern filtering support (#68)
### Miscellaneous Tasks
- Update prompts for current repo's workflow (#63)
### Refactor
- Extracted git repo check into `is-repo` custom command (#64)
## [1.3.0] - 2025-01-31
### Documentation

View File

@@ -9,7 +9,7 @@
- Analyze Commit Changes with Deepseek for Any Local Repository with CLI
- Fully Customizable: Choose Models, Base URLs, and Prompts
- Supports Self-Hosted Deepseek Models for Enhanced Flexibility
- Perform code reviews for changes that either include or exclude specific files
- Perform Code Reviews for Changes That either Include or Exclude Specific Files
- Add `skip cr` or `skip review` to PR title or body to disable code review in GitHub Actions
- Cross-platform Support: Compatible with GitHub Runners across `macOS`, `Ubuntu`, and `Windows`.
@@ -61,7 +61,9 @@ jobs:
</details>
When a PR is created, Deepseek code review will be automatically triggered, and the review results will be posted as comments on the corresponding PR. For example: [Example](https://github.com/hustcer/deepseek-review/pull/30) & [Run Log](https://github.com/hustcer/deepseek-review/actions/runs/13043609677/job/36390331791#step:2:53).
When a PR is created, Deepseek code review will be automatically triggered, and the review results(depend on your prompt) will be posted as comments on the corresponding PR. For example:
- [Example 1](https://github.com/hustcer/deepseek-review/pull/30) with default prompt & [Run Log](https://github.com/hustcer/deepseek-review/actions/runs/13043609677/job/36390331791#step:2:53).
- [Example 2](https://github.com/hustcer/deepseek-review/pull/68) with [this prompt](https://github.com/hustcer/deepseek-review/blob/eba892d969049caff00b51a31e5c093aeeb536e3/.github/workflows/cr.yml#L32)
### Trigger CR When a Specific Label was Added

View File

@@ -59,7 +59,9 @@ jobs:
</details>
当 PR 创建的时候会自动触发 Deepseek 代码审查,并将审查结果以评论的方式发布到对应的 PR 上。比如:[示例](https://github.com/hustcer/deepseek-review/pull/30) & [运行日志](https://github.com/hustcer/deepseek-review/actions/runs/13043609677/job/36390331791#step:2:53)
当 PR 创建的时候会自动触发 Deepseek 代码审查,并将审查结果(依赖于提示词)以评论的方式发布到对应的 PR 上。比如:
- [示例 1](https://github.com/hustcer/deepseek-review/pull/30) 基于默认提示词 & [运行日志](https://github.com/hustcer/deepseek-review/actions/runs/13043609677/job/36390331791#step:2:53).
- [示例 2](https://github.com/hustcer/deepseek-review/pull/68) 基于 [这个提示词](https://github.com/hustcer/deepseek-review/blob/eba892d969049caff00b51a31e5c093aeeb536e3/.github/workflows/cr.yml#L32)
### 当 PR 添加指定 Label 时触发审查
@@ -99,8 +101,8 @@ jobs:
| model | String | 可选,配置代码审查选用的模型,默认为 `deepseek-chat` |
| base-url | String | 可选Deepseek API Base URL, 默认为 `https://api.deepseek.com` |
| max-length | Int | 可选,待审查内容的最大 Unicode 长度, 默认 `0` 表示没有限制,超过非零值则跳过审查 |
| sys-prompt | String | 可选,系统 Prompt 对应入参中的 `$sys_prompt`, 默认值见后文注释 |
| user-prompt | String | 可选,用户 Prompt 对应入参中的 `$user_prompt`, 默认值见后文注释 |
| sys-prompt | String | 可选,系统提示词对应入参中的 `$sys_prompt`, 默认值见后文注释 |
| user-prompt | String | 可选,用户提示词对应入参中的 `$user_prompt`, 默认值见后文注释 |
| include-patterns | String | 可选,代码审查中要包含的以逗号分隔的文件模式,无默认值 |
| exclude-patterns | String | 可选,代码审查中要排除的以逗号分隔的文件模式,默认值为 `pnpm-lock.yaml,package-lock.json,*.lock` |
| github-token | String | 可选,用于访问 API 进行 PR 管理的 GitHub Token默认为 `${{ github.token }}` |
@@ -127,8 +129,8 @@ Deepseek 接口调用入参:
> [!NOTE]
>
> 可以通过 Prompt 的语言来控制代码审查结果的语言,当前默认的 Prompt 语言是英文的,
> 当你使用中文 Prompt 的时候生成的代码审查结果就是中文的
> 可以通过提示词的语言来控制代码审查结果的语言,当前默认的提示词语言是英文的,
> 当你使用中文提示词的时候生成的代码审查结果就是中文的
## 本地代码审查

View File

@@ -1,7 +1,7 @@
{
"name": "deepseek-review",
"version": "1.3.0",
"actionVer": "v1.3",
"version": "1.5.0",
"actionVer": "v1.5",
"author": "hustcer",
"license": "MIT",
"github": "https://github.com/hustcer/deepseek-review",