PerryLink/dsh-github9

@perrylink/dsh-github

提供官方级GitHub CI与PR审查工具

AI 分析

适合需要在CI流程中自动审查PR、修复问题和管理仓库的团队。

套件
@perrylink/dsh-github
版本
0.7.10
授權
Apache-2.0
最近更新
2026年9月12日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:PerryLink/dsh-github

Configuration

All tunables are Schemastery Config fields (changeable from cordis.yml). An id-targeted override replaces the whole row — restate every key you need. cordis.patch.yml documents each key inline.

KeyDefaultMeaning
tokenSourceautoauto (credentials → env → gh) or one of credentials / env / gh
tokenRefGITHUB_TOKENCredential-seam reference / environment-variable name
defaultOwnerRepoFallback owner/repo when a call names none and git has no origin
autoCommitfalseWhether /pr create may instruct the model to commit+push first
maxDiffChars8000Character cap for PR diffs read into reviews
renderExcerptChars2000Character cap for the diff excerpt rendered into tool output
maxComments20Cap for PR comments listed by gh_review
reviewJobTimeoutMs600000Deadline for one background review job (fails with timeout)
maxReviewRecords50Cap for in-memory review-job records; oldest settled records evict first
maxFileChars12000Character cap for file contents read by gh_file
maxFindings50Cap for analyzer findings per review
maxLineLength300Line length beyond which the analyzer flags a long-line finding
reviewModestaticReview engine: static (deterministic analyzer) or model (one-shot subagent through the host's subagents seam; fails loud when the seam is absent)
modelReviewProviderSubagent provider name for reviewMode: "model"; defaults to the first registered provider
maxRetries3429 retry attempts per request
retryBaseMs500Retry backoff base (doubles per attempt)
retryMaxWaitMs60000Retry backoff ceiling
requestTimeoutMs30000Hard per-request timeout; aborts the fetch when exceeded
apiBaseUrlhttps://api.github.comGitHub REST base URL (GitHub Enterprise)
allowedActions['pr.create','pr.merge','pr.update','review.post','issue.create','issue.comment','issue.close','ci.run']Write-action whitelist; anything else is denied before approval
workspaceDirprocess cwdWorking directory for read-only git inspection
ci{ enabled: false, … }CI integration section: polling review bot, status-check gate, and the one-shot ci_run tool (all ci.* keys live inside it)