Explicitly commits and pushes the current project to GitHub, creates a feature branch and pull request, and tracks the result in the conversation.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:YuanYuan-JC/dsh-plugin-github-push
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
在 DeepSeek Harness 会话里,把当前项目在用户明确发出推送指令时提交并推送到 GitHub,自动创建分支与 Pull Request,并把 PR/检查状态绑定回会话跟踪。
- 只在显式推送时提交:平时编辑文件不会产生 commit
- 默认
branchPolicy=feature:在默认分支上先建dsh/<package-name>分支再开 PR - 支持 tag / GitHub Release:仅在合并后的默认分支创建
- 三种入口:模型工具
github_push、斜杠命令/github-push、输入区「推送」按钮 - 会话视图 Git tab:提交泳道图、分支 ref、PR/checks 徽章
- 凭据复用宿主已登录的
gh;token 不进入模型上下文、命令行参数或.git/config
仓库:https://github.com/YuanYuan-JC/dsh-plugin-github-push
安装
本插件是本地 bundle。克隆仓库后,在 DSH 的 设置 → 插件 中把本仓库根目录作为本地目录安装到当前 profile,或使用 plugin_manager 的 install_bundle 指向本目录:
git clone https://github.com/YuanYuan-JC/dsh-plugin-github-push.git
安装后在新会话中验证:
- 工具
github_push - 斜杠命令
/github-push - 输入区「推送」按钮
- 会话视图「Git」tab
使用
| 入口 | 说明 |
|---|---|
| 输入区「推送」按钮 | 预览分支/仓库/改动/提交信息/PR/tag,确认后提交并推送 |
/github-push [提交信息] |
不经过模型,直接提交并推送 |
工具 github_push |
action: plan / apply / status,可传 message、repo、branchPolicy、tag、release 等 |
首次推送新仓库会先 bootstrap 默认分支(此时还没有可供 PR 的 base),随后推送才走 dsh/<package-name> + PR。
插件市场索引
本仓库自带一个 DSH 插件索引(format 1),不依赖 npm 发布:
https://raw.githubusercontent.com/YuanYuan-JC/dsh-plugin-github-push/main/market/index.json
使用方式:
- 在 DSH 的 Plugins → Experimental plugins 中启用 Custom plugin indexes。
- 打开 Discover,选择 Add index source,填入上面的 URL。
- 在索引中安装或更新
dsh-plugin-github-push(索引中的版本通过 Git commit 安装)。
索引文件是 market/index.json,新版本发布后需要把对应版本与 commit 加进去。
配置
见 docs/DETAIL.md。常用:
branchPolicy:feature(默认)或currentbranchNaming:public(默认,ASCII 包名)或bilingualvisibility:新建仓库默认privatesecretScan/denyPaths:提交前敏感路径拦截
开发
npm test
CI 在 GitHub Actions 中运行同一命令。
要求
- DSH
0.2.2-rc.5(Desktop profile) - 宿主安装并登录
gh(GitHub CLI) - 需要 GitHub 账号;新建仓库默认 private
变更记录
见 CHANGELOG.md。
安全
漏洞报告与凭据处理说明见 SECURITY.md。
许可证
状态
0.6.1:推送/跟踪、客户端 UI、分支策略、checks、Git 视图、tag/release 已实现;GitHub Enterprise/GitLab 与插件市场发布未做。
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-git-graph★ 10703
Git branch selector and Git graph for the dsh web GUI: switch branches and explore branch-lane and commit history from the conversation header. Retired by the author in favour of the official workspace-changes plugin: the published npm package stays installable but is no longer developed.
Akimiya-z/codex-guard#dsh★ 130
Pre-submit pull-request hygiene checks inside DeepSeek Harness: scans the current diff for TODO leftovers, hardcoded secrets, and non-conventional commit subjects.
xbzbing/dsh-git-panel★ 65
IDE-style Git panel in the DSH Web GUI: a resident tab with a three-column overview (branch/tag list, searchable commit-history graph, commit detail with changed-file tree and message) and a changes page (stats bar, uncommitted list with per-file stage/unstage/discard, commit box with amend); side-by-side diffs carry lazy highlight.js syntax highlighting, on-demand between-hunk context expansion and word-level intra-line emphasis, with image files shown as before/after panes; plus a zsh-style branch marker in the input bar. Every git command runs as an argv array through the host subprocess service, cwd locked to the repo root.
Cerbur/clutch-dsh#clutch-dsh-worktree★ 50
Adds a Worktree view to DSH Web UI that groups Sessions by Git worktree while keeping DSH as the source of truth.
KannaKuron/dsh-ide-git★ 42
JetBrains-style Git tool window for the sidebar: branch tree with ahead/behind badges, commit graph with text/author/date/path filters, per-file line diff, changes list and commit box, plus branch, tag and stash actions, merge, rebase, cherry-pick, reset and fetch/pull/push.
Lenonss/DSH_VsCodeMode★ 37
VSCode-style editing experience for DeepSeek Harness: a Monaco-based central file editor (tabs, Ctrl+P quick open, status bar) and interactive diff review of agent edit/write results with per-change Keep/Undo, rollback and archiving, persisted across restarts.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.