dsh-github-ops: GitHub Release and Operations Management

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:

  1. Release & Tag Management

    • Release Management: Supports list viewing, single viewing, creation, editing, deletion, and management of assets and notes. By using gh_release_edit with makeLatest: true, you can keep repository badges pointing to the current version.
    • Tag Management: Supports list viewing, creation (supporting lightweight or annotated tags), and deletion.
  2. Generic API Access

    • The gh_api tool 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 setting confirm: true.
  3. Issue & Pull Request Management

    • Supports listing, searching, creating, commenting on, closing, and merging PRs.
    • gh_review provides code review packaging capabilities, including metadata, areas, diffs, comments, and CI summaries.
    • review_post is used to publish review results.
  4. CI/CD Checks

    • gh_checks is used to check runs, legacy status, and merge reviews.
    • ci_run provides rule-based PR reviews.
  5. Sanitized Image Publishing

    • gh_mirror_check is used to check the release plan and confirm which files will reach the mirror.
    • gh_mirror_publish is 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:

  1. List Releases
    gh_release_list
  1. Create Release
    gh_release_create
  1. View Release Details
    gh_release_view
  1. Generate Release Notes
    gh_release_notes_generate
  1. Publish Sanitized Image
    gh_mirror_publish
  1. 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.

View Plugin Details
View Source Code

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye