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

3 Commits

Author SHA1 Message Date
hustcer
adf7e63560 chore: Update logo 2025-02-16 23:19:47 +08:00
hustcer
55958cd4a9 chore: Update tests status badge to README 2025-02-16 21:37:50 +08:00
hustcer
88ea2aed5e chore: Publish test summary (#133) 2025-02-16 21:08:20 +08:00
6 changed files with 48 additions and 2 deletions

View File

@@ -70,3 +70,29 @@ jobs:
--report { type: junit, path: test-report.xml }
--returns summary | to json | save --force test-summary.json
)
- name: Publish Test Summary
if: runner.os == 'macOS' && matrix.version == '*' && github.ref == 'refs/heads/main'
shell: nu {0}
run: |
let filename = 'test-summary.json'
let gist_id = 'b99391ee59016b17d0befe3331387e89'
let data = {
files: {
"test-summary.json": {
content: (open --raw $filename)
}
}
}
(
$data | http patch
--redirect-mode 'follow'
--content-type 'application/json'
--headers {
'X-GitHub-Api-Version': '2022-11-28'
'Accept': 'application/vnd.github+json'
'Authorization': $'Bearer ${{ secrets.GH_PAT }}'
}
$'https://api.github.com/gists/($gist_id)'
) | ignore

BIN
CR.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

View File

@@ -1,5 +1,14 @@
<p align="center">
<img src="./CR.jpg" width="90" height="60" alt="DeepSeek Code Review Logo" />
</p>
# DeepSeek Code Review
![Tests](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgist.githubusercontent.com%2Fhustcer%2Fb99391ee59016b17d0befe3331387e89%2Fraw%2Ftest-summary.json&query=%24.total&label=Tests)
![Passed](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgist.githubusercontent.com%2Fhustcer%2Fb99391ee59016b17d0befe3331387e89%2Fraw%2Ftest-summary.json&query=%24.passed&label=Passed&color=%2331c654)
![Failed](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgist.githubusercontent.com%2Fhustcer%2Fb99391ee59016b17d0befe3331387e89%2Fraw%2Ftest-summary.json&query=%24.failed&label=Failed&color=red)
![Skipped](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgist.githubusercontent.com%2Fhustcer%2Fb99391ee59016b17d0befe3331387e89%2Fraw%2Ftest-summary.json&query=%24.skipped&label=Skipped&color=yellow)
[中文说明](README.zh-CN.md)
`deepseek-review` also offers seamless integration with DeepSeek models on SiliconCloud. [Sign Up Now](https://cloud.siliconflow.cn/i/rqCdIxzS) to **Claim Your Free 20 Million Tokens** and start exploring its capabilities!

View File

@@ -1,5 +1,10 @@
# DeepSeek 代码审查
![Tests](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgist.githubusercontent.com%2Fhustcer%2Fb99391ee59016b17d0befe3331387e89%2Fraw%2Ftest-summary.json&query=%24.total&label=Tests)
![Passed](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgist.githubusercontent.com%2Fhustcer%2Fb99391ee59016b17d0befe3331387e89%2Fraw%2Ftest-summary.json&query=%24.passed&label=Passed&color=%2331c654)
![Failed](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgist.githubusercontent.com%2Fhustcer%2Fb99391ee59016b17d0befe3331387e89%2Fraw%2Ftest-summary.json&query=%24.failed&label=Failed&color=red)
![Skipped](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgist.githubusercontent.com%2Fhustcer%2Fb99391ee59016b17d0befe3331387e89%2Fraw%2Ftest-summary.json&query=%24.skipped&label=Skipped&color=yellow)
本工具也支持使用 SiliconCloud 上的 DeepSeek 模型,[注册](https://cloud.siliconflow.cn/i/rqCdIxzS) 就**免费赠送 2000 万 Token**,赶紧试试吧!
## 特性

View File

@@ -26,7 +26,10 @@
# - Local PR Review: just cr -r hustcer/deepseek-review -n 32
use kv.nu *
use common.nu [ECODE, hr-line, is-installed, git-check, has-ref, compare-ver, compact-record, windows?, mac?]
use common.nu [
ECODE, hr-line, is-installed, windows?, mac?,
compare-ver, compact-record, git-check, has-ref,
]
const RESPONSE_END = 'data: [DONE]'

View File

@@ -1,7 +1,10 @@
use std/assert
use ../nu/review.nu [is-safe-git, generate-include-regex, generate-exclude-regex, prepare-awk, get-diff]
use ../nu/review.nu [
get-diff, is-safe-git, prepare-awk,
generate-include-regex, generate-exclude-regex,
]
# Get the unicode width of the input string
def get-uw [] { $in | str stats | get unicode-width }