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

fix: Try to fix workflow error for Nu 0.111 (#197)

* fix: Try to fix workflow error for Nu 0.111

* chore: Update readme
This commit is contained in:
Justin Ma
2026-02-09 10:41:14 +08:00
committed by GitHub
parent 90c8878923
commit 92a3c2ae17
5 changed files with 8 additions and 10 deletions

View File

@@ -7,8 +7,6 @@
[中文说明](README.zh-CN.md) [中文说明](README.zh-CN.md)
`deepseek-review` 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!
## Features ## Features
### GitHub Action ### GitHub Action

View File

@@ -5,8 +5,6 @@
![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) ![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) ![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**,赶紧试试吧!
## 特性 ## 特性
### GitHub Action ### GitHub Action

View File

@@ -20,6 +20,7 @@ words:
- hustcer - hustcer
- Nushell - Nushell
- creatio - creatio
- pipefail
- justfile - justfile
- lefthook - lefthook
- deepseek - deepseek

View File

@@ -193,7 +193,8 @@ export def git-check [
# Check if current directory is a git repo # Check if current directory is a git repo
export def is-repo [] { export def is-repo [] {
let checkRepo = try { let checkRepo = try {
do -i { git rev-parse --is-inside-work-tree } | complete # Put `complete` inside `do` block to avoid pipefail error in Nushell 0.110+
do { git rev-parse --is-inside-work-tree | complete }
} catch { } catch {
({ stdout: 'false' }) ({ stdout: 'false' })
} }
@@ -205,8 +206,8 @@ export def has-ref [
ref: string # The git ref to check ref: string # The git ref to check
] { ] {
if not (is-repo) { return false } if not (is-repo) { return false }
# Brackets were required here, or error will occur # Put `complete` inside `do` block to avoid pipefail error in Nushell 0.110+
let parse = (do -i { git rev-parse --verify -q $ref } | complete) let parse = (do { git rev-parse --verify -q $ref | complete })
if ($parse.stdout | is-empty) { false } else { true } if ($parse.stdout | is-empty) { false } else { true }
} }

View File

@@ -46,9 +46,9 @@ export def 'make-release' [
export def has-ref [ export def has-ref [
ref: string # The git ref to check ref: string # The git ref to check
] { ] {
let checkRepo = (do -i { git rev-parse --is-inside-work-tree } | complete) # Put `complete` inside `do` block to avoid pipefail error in Nushell 0.110+
let checkRepo = (do { git rev-parse --is-inside-work-tree | complete })
if not ($checkRepo.stdout =~ 'true') { return false } if not ($checkRepo.stdout =~ 'true') { return false }
# Brackets were required here, or error will occur let parse = (do { git rev-parse --verify -q $ref | complete })
let parse = (do -i { git rev-parse --verify -q $ref } | complete)
if ($parse.stdout | is-empty) { false } else { true } if ($parse.stdout | is-empty) { false } else { true }
} }