feat: add mirror-it plugin for Gitea to GitHub push mirroring #7

Merged
rootiest merged 1 commits from feat-mirror-it-plugin into main 2026-08-25 04:02:30 +00:00
Owner

Summary

  • Adds a mirror-it plugin/skill that registers a Gitea push mirror to GitHub via tea api against the push_mirrors endpoint.
  • Fixes the source draft's field names to match Gitea's real CreatePushMirrorOption schema (remote_address/remote_username/remote_password) instead of a nonexistent clone_addr with credentials embedded in the URL.
  • Credentials resolve from the environment first, falling back to a repo-root .env file (never printed).
  • Shell snippets are POSIX-compatible (not Fish-specific), since they run through whichever shell the agent's tool actually invokes.
  • Ignores .env* repo-wide.
  • README updated to document the new plugin.

Test plan

  • python3 scripts/generate_plugins.py --check passes
  • python3 scripts/generate_plugins.py regenerates dist/** and .claude-plugin/marketplace.json cleanly
  • Manually verified the jq/tea api snippet produces a payload matching Gitea's CreatePushMirrorOption struct
  • Install the plugin and run /mirror-it against a real Gitea repo
## Summary - Adds a `mirror-it` plugin/skill that registers a Gitea push mirror to GitHub via `tea api` against the `push_mirrors` endpoint. - Fixes the source draft's field names to match Gitea's real `CreatePushMirrorOption` schema (`remote_address`/`remote_username`/`remote_password`) instead of a nonexistent `clone_addr` with credentials embedded in the URL. - Credentials resolve from the environment first, falling back to a repo-root `.env` file (never printed). - Shell snippets are POSIX-compatible (not Fish-specific), since they run through whichever shell the agent's tool actually invokes. - Ignores `.env*` repo-wide. - README updated to document the new plugin. ## Test plan - [x] `python3 scripts/generate_plugins.py --check` passes - [x] `python3 scripts/generate_plugins.py` regenerates `dist/**` and `.claude-plugin/marketplace.json` cleanly - [x] Manually verified the `jq`/`tea api` snippet produces a payload matching Gitea's `CreatePushMirrorOption` struct - [x] Install the plugin and run `/mirror-it` against a real Gitea repo
rootiest added 1 commit 2026-08-25 03:35:56 +00:00
feat: add mirror-it plugin for Gitea to GitHub push mirroring
Generate plugin manifests / generate (pull_request) Skipped
Generate plugin manifests / validate (pull_request) Successful in 20s
9b0c76a95c
Adds a mirror-it skill that registers a Gitea push mirror via `tea api`
against the push_mirrors endpoint, using Gitea's actual
remote_address/remote_username/remote_password fields (never embedding
credentials in the mirror URL). Credentials can come from the
environment or fall back to a repo-root .env file, and all shell
snippets are POSIX-compatible so the skill isn't tied to any one shell.

Also ignores .env* files repo-wide.
rootiest merged commit f25f2e8abc into main 2026-08-25 04:02:30 +00:00
rootiest deleted branch feat-mirror-it-plugin 2026-08-25 04:02:30 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rootiest/rootiest-ai#7