Community plugin

ramuzes / dsh-gitlab

GitLab tools for dsh agents: REST API + token-injected git over HTTPS, so GitLab work needs no per-call sandbox approvals

  • JavaScript
  • License not detected
  • 0 stars
  • Dec 3, 2026

About this plugin

Written by the registry from verified metadata, not from the README.

dsh-gitlab is a DSH plugin published from the packages/gitlab package in the ramuzes/dsharp repository.

  • Listing statusManifest verified
  • Manifest checkedDec 3, 2026
  • Packagedsh-gitlab
  • Package pathpackages/gitlab
  • Package version0.3.0
  • Source commitf724d82
  • Repository createdOct 2, 2026

Capabilities and topics

agent
From the repository README

README

Everything below this line is the repository's own document, cached here. This site did not write or review it.

Cached versionView on GitHub

dsh-gitlab

Agent-facing GitLab operations: REST API (MRs, issues, milestones, releases, pipelines & schedules) plus token-injected git over HTTPS (clone/fetch/push/ pull, branch management, merged stale-branch cleanup). The token stays host-side, so no per-call sandbox approvals are needed.

Config

FieldDefaultNotes
baseUrlGITLAB_URL envGitLab instance root URL (self-hosted or gitlab.com).
Token (secret control)GITLAB_TOKEN refWritten to the dsh credential store, never echoed back.
tokenEnvGITLAB_TOKENCredential-store reference name.
apiTimeoutMs20000REST request timeout.
gitTimeoutMs120000Per git-command timeout.

Behavior notes

  • Git processes follow the calling session's own sandbox policy (sandboxPolicy.resolve + sandbox.confine — the same confinement bash uses); the plugin keeps no permission system of its own. Repo paths resolve against the session workspace root.
  • Local clones with ssh origins work as-is: fetch and push rewrite to the https URL on the fly (token injected host-side via env); the stored origin remote is never modified. Remote transport to GitLab is HTTPS only (Basic-auth extraHeader via env, never in argv or on-disk config).
  • Branch deletion is merged-only: local git branch -d (never -D), remote deletes verified via the compare API first; no force-push.
  • All output is redacted against the token and its base64 forms.

Development

node --test tests/*.spec.js; follow the root AGENTS.md loop for live-host verification. Mount stages land in ~/.dsh/gitlab-status.json. After browser-half changes verify the served boot graph via curl -N <host>/plugins/events (see AGENTS.md §3). Chinese README: README.zh-CN.md.

Badge

Listed here? Link back with this badge — paste the snippet into your repository README.

Listed on DSH Plugin badge
[![Listed on DSH Plugin](https://dsh-plugin.com/badges/listed.svg)](https://dsh-plugin.com/plugins/ramuzes/dsharp/packages/gitlab)
dsh-gitlab — DSH Plugin