| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix(repo): address Round 1 review — delete confirmation + remove no-op json + list empty json Address Round 1 independent review findings (PR #500): Blocker fixes: - S1: Add --yes flag + ConfirmOrAbort to delete command (aligns with all other delete commands: repo/label/release/milestone) - C2: Remove --json flag from create/update (was registered but never used, no JSON output path) - C3: Fix list empty+JSON to output [] instead of text message (agent-friendly contract: --json always outputs JSON) Doc fixes: - D2: Add exit code 2 and --yes to delete docs 15/15 tests pass. Refs gitcode-cli/cli#530 | 2 个月前 | |
fix(repo): address Round 1 review — delete confirmation + remove no-op json + list empty json Address Round 1 independent review findings (PR #500): Blocker fixes: - S1: Add --yes flag + ConfirmOrAbort to delete command (aligns with all other delete commands: repo/label/release/milestone) - C2: Remove --json flag from create/update (was registered but never used, no JSON output path) - C3: Fix list empty+JSON to output [] instead of text message (agent-friendly contract: --json always outputs JSON) Doc fixes: - D2: Add exit code 2 and --yes to delete docs 15/15 tests pass. Refs gitcode-cli/cli#530 | 2 个月前 | |
fix(repo): address Round 1 review — delete confirmation + remove no-op json + list empty json Address Round 1 independent review findings (PR #500): Blocker fixes: - S1: Add --yes flag + ConfirmOrAbort to delete command (aligns with all other delete commands: repo/label/release/milestone) - C2: Remove --json flag from create/update (was registered but never used, no JSON output path) - C3: Fix list empty+JSON to output [] instead of text message (agent-friendly contract: --json always outputs JSON) Doc fixes: - D2: Add exit code 2 and --yes to delete docs 15/15 tests pass. Refs gitcode-cli/cli#530 | 2 个月前 | |
fix(repo): address Round 1 review — delete confirmation + remove no-op json + list empty json Address Round 1 independent review findings (PR #500): Blocker fixes: - S1: Add --yes flag + ConfirmOrAbort to delete command (aligns with all other delete commands: repo/label/release/milestone) - C2: Remove --json flag from create/update (was registered but never used, no JSON output path) - C3: Fix list empty+JSON to output [] instead of text message (agent-friendly contract: --json always outputs JSON) Doc fixes: - D2: Add exit code 2 and --yes to delete docs 15/15 tests pass. Refs gitcode-cli/cli#530 | 2 个月前 | |
feat(repo): add gc repo branch-protection CRUD — list/create/update/delete Add a new repo branch-protection command group with 4 subcommands: - list: list all branch protection rules (GET /protect_branches) with --json support - create: create a protection rule (PUT /branches/setting/new) with --wildcard/--pusher/--merger flags, secret scan on pusher/merger - update: update a rule (PUT /branches/{wildcard}/setting) with --pusher/--merger flags, at least one required - delete: delete a rule (DELETE /branches/{wildcard}/setting) API additions in queries_repo.go: - BranchProtection type (name/push_users/merge_users/developers_can_push etc) - BranchProtectionRequest type (wildcard/pusher/merger with omitempty) - ListBranchProtections, CreateBranchProtection, UpdateBranchProtection, DeleteBranchProtection functions - All use escapedRepoPath for URL construction 15 unit tests (4 list + 4 create + 4 update + 3 delete) cover: flag validation, success, JSON output, empty results, error handling, no-wildcard error, no-fields error. Real command verification on infra-test/gctest1: branch-protection list returns 'No branch protection rules found.' Refs gitcode-cli/cli#530 | 2 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 |