CN-WenYu/dsh-git-conventions1

dsh-git-conventions

Enforce configurable git commit / push / PR conventions for DeepSeek Harness agents

包名
dsh-git-conventions
版本
0.1.0
许可证
MIT
最近更新
2026年8月21日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:CN-WenYu/dsh-git-conventions

配置项

命名空间 git-conventions

字段类型默认含义
commitInstructionsstringConventional Commits(zh/en 随语言)提交说明规则;违规时作为重写提示回显
prInstructionsstringPR 模板(zh/en 随语言)拉取请求标题 / 描述规则
enforcebooleantrue是否强制拦截;关闭后全部放行
useForceWithLeasebooleantruegit push 出现裸 --force 时提醒改用 --force-with-lease

任何修改即时生效,无需重启。

使用示例

合规:正常放行

git commit -m "feat(agent): 新增 git 提交规范拦截"
git commit -m "fix(commit): 修正 subject 校验的空消息边界"
git push --force-with-lease
gh pr create --title "feat: 支持 scope 校验" \
  --body "动机与背景 / 主要改动 / 测试与验证 / 影响范围"

违规:被拦截