feat(branch): add +all and keyword filtering for +list #377
Loading…
Reference in New Issue
No description provided.
Delete Branch "Taoyouce/gitlink-cli:feat/branch-all-and-filter"
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
Two gaps against the v1 branches API (
Api::V1::Projects::BranchesController):branch +listhad no way to filter — the index supports akeywordname filter (forwarded to gitea-hat asname). Added-k/--keyword.GET /branches/allendpoint (full branch name list, no pagination) had no CLI counterpart. Addedbranch +all.Note:
/branches/allreturns a top-level JSON array; structured (non-string) rendering of such responses composes with the fix in #339.Validation
total_countto matching branches;/allreturns the complete branch set.go test ./...,go vet,gofmtall clean.