feat(branch): add +all and +set-default #386
Loading…
Reference in New Issue
No description provided.
Delete Branch "Taoyouce/gitlink-cli:feat/branch-default-all"
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 branch-group gaps closed against
Api::V1::Projects::BranchesController:branch +all: the full branch-name list viaGET /branches/all(AllListService) — no paging, ideal for scripting/completion.+listonly returns paged detail objects.branch +set-default -n <name>: switch the repository default branch viaPATCH /branches/update_default_branch(manager permission). The CLI previously had no way to change the default branch at all.Validation
status: 0(switched on a fork and restored).go test ./...,go vet,gofmtall clean.Pull request closed