In the DeepSeek Harness (DSH) ecosystem, existing GitHub plugins cannot fully cover the requirements regarding releases, tags, and sanitized image publishing within the release pipeline. The dsh-github-ops plugin provides supplements for these scenarios.
Plugin Introduction¶
Maintained by GooDAnDReaDY, this plugin aims to provide GitHub operations capabilities for DSH. It includes features such as release management, tag management, protected generic API forwarding, sanitized image publishing, workflow runs, and repository settings.
Core Features¶
The plugin provides the following core toolset:
-
Release & Tag Management
- Release Management: Supports list viewing, single viewing, creation, editing, deletion, and management of assets and notes. By using
gh_release_editwithmakeLatest: true, you can keep repository badges pointing to the current version. - Tag Management: Supports list viewing, creation (supporting lightweight or annotated tags), and deletion.
- Release Management: Supports list viewing, single viewing, creation, editing, deletion, and management of assets and notes. By using
-
Generic API Access
- The
gh_apitool is used to access interfaces not covered by Typed Tools (such as refs, rulesets, organizations, gists). Read operations do not require confirmation, while write operations (POST/PATCH/PUT/DELETE) require settingconfirm: true.
- The
-
Issue & Pull Request Management
- Supports listing, searching, creating, commenting on, closing, and merging PRs.
gh_reviewprovides code review packaging capabilities, including metadata, areas, diffs, comments, and CI summaries.review_postis used to publish review results.
-
CI/CD Checks
gh_checksis used to check runs, legacy status, and merge reviews.ci_runprovides rule-based PR reviews.
-
Sanitized Image Publishing
gh_mirror_checkis used to check the release plan and confirm which files will reach the mirror.gh_mirror_publishis used to publish the sanitized tree; this operation only performs a fast-forward merge on the mirror branch and does not use force push.
Installation & Activation¶
Installing the plugin requires a DeepSeek Harness environment and ensures that Node 20+ is installed.
dsh plugin --profile web add @goodandready/dsh-github-ops
After installation, a GitHub Token needs to be configured in the DSH credential service, using a credential named GITHUB_TOKEN by default.
Typical Usage¶
Below are typical command examples provided by the plugin:
- List Releases
gh_release_list
- Create Release
gh_release_create
- View Release Details
gh_release_view
- Generate Release Notes
gh_release_notes_generate
- Publish Sanitized Image
gh_mirror_publish
- Edit Release and Keep Latest
gh_release_edit makeLatest: true
Use Cases & Notes¶
- Development Status: This plugin is currently under development and has not been officially released.
- Permissions & Security: The plugin runs with the permissions of the DSH process. High-risk operations such as deleting repositories, transferring repositories, or deleting organizations will be rejected, even if the user sets
confirm: true. - Caching Strategy: Read operations use an in-memory cache (default TTL is 60 seconds), but write operations always write directly to the network and clear the cache.
- Prerequisites: A GitHub Token must be configured in the DSH credential service before use.
Summary¶
The dsh-github-ops plugin fills the gap in DSH’s GitHub release workflow and mirror management. By providing protected APIs and sanitized publishing features, it is suitable for developers who need fine-grained control over the GitHub release process.