3.0 KiB
3.0 KiB
name, description
| name | description |
|---|---|
| gitea-repo-management | Use when accessing or splitting gitea.mindboost.team repos. |
Gitea (gitea.mindboost.team) repo work
Access: find the working account first
- A browser URL returning 404 usually means "no access", not "missing". Check
~/.git-credentials(never print the secret; mask with sed) for the gitea accounts. - Test each account against
GET /api/v1/userandGET /api/v1/repos/<owner>/<repo>. Different accounts see different repos; the first stored account is NOT necessarily the one with access. Git's credential helper picks the first match for the host, so clone with the working user embedded (https://USER:PW@host/...) and thengit remote set-url originto the clean URL so no password lands in.git/config. - SSH (
git@gitea.mindboost.team) may be denied for the default key; the per-purpose aliases in~/.ssh/config(gitea-*, port 222) are deploy keys scoped to single repos. HTTPS with the working account is the general path. - Token scopes limit actions: creating a repo inside an org needs
write:organization;write:repositoryalone returns 403. Do not work around it (personal repo + transfer). Prepare everything locally and ask the user to create the empty repo or supply a token with the scope.
Splitting part of a repo into a new repo (keeping history)
Recipe and checks: references/repo-split.md. Short form: dependency analysis first, ask scope questions, git filter-repo on a throwaway single-branch clone, fix cross-repo paths, run the tests, only then create and push.
Restructuring a freshly split repo
- Move files with
git mvin one commit so history follows. Then rewrite path literals in tests, deploy registry and CI triggers, and run the whole test set; tests that lived outside the CI runner may fail silently otherwise. - A deploy script that maps registry entries to files needs a path-aware prefix check (use basename). Auto-deploy triggers must match the new folder glob.
- Add a docs check (every workflow named in project-map and workflow doc, no dead links) and prove it with a negative test.
- Do not move shared snapshots (copies of other repos' workflows) into the deploy folder.
n8n workflow exports: readable layout
- Generate node positions and phase boxes from a spec file (phases with purpose, reason, node list) instead of moving nodes by hand; the tool must change only positions and sticky notes. Prove it by diffing every node (minus position) and the connections against the previous commit.
- Make unassigned nodes a hard error so new nodes force a documented phase, and add a test that fails on layout drift, overlap and nodes outside their box.
- Write box texts from the code, not the node names: read the code of ambiguous nodes first.
Conventions for this user
- Do destructive or visible steps (removing files from the original repo, pushing, creating repos) only as agreed; default is: build the new repo first, remove from the old one later in a separate PR.
- Write results in German; report what was verified (tests run) and what is still open.