Reference in New Issue
Block a user
Delete Branch "feat/repo-crud"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Batch 1 of the v0.2 sprint — three tools needed for the
hyperguild new-projectautomated project creation flow.Tools added
repo_createPOST /user/reposor/orgs/{org}/reposrepo_updatePATCH /repos/{owner}/{repo}repo_mirror_pushPOST/GET/DELETE /repos/{owner}/{repo}/push_mirrorsDesign decisions
repo_createusesis_org: trueto route to the org endpoint — avoids a round-trip to detect user vs orgrepo_updaterequiresconfirm == repo_namewhen settingprivate: false(making public is destructive)repo_mirror_pushuses anactionparam (add/list/delete) — three operations, one tool;remote_passwordis never returned in any responseTests
All table-driven with
httptest.NewServermocks, following existing pattern.task checkpasses (lint + race test + vet + govulncheck).repo_create: POST /user/repos or /orgs/{org}/repos, is_org flag routes repo_update: PATCH /repos/{owner}/{repo}, confirm required when private=false repo_mirror_push: add/list/delete push mirrors, password never returned