cli/pkg/cmd/pr
Kynan Ware d643d5386e fix(pr edit): send empty slices to clear reviewers in replace mode
Always send explicit lists for userLogins, botLogins, and teamSlugs
in RequestReviewsByLogin mutation, even when empty. Previously, empty
slices were omitted due to omitempty JSON behavior and len > 0 checks,
which prevented clearing all reviewers when using replace mode.

Empty slices are harmless no-ops in union mode, so we now send them
unconditionally for simpler logic.

Add test to verify the mutation receives empty slices when all
reviewers are removed.
2026-01-29 10:37:11 -07:00
..
checkout fix(pr checkout): add alias co 2025-09-24 14:56:59 +01:00
checks fix: --interval flags docs in gh pr checks 2025-10-30 20:06:45 +00:00
close Cleanup run command stubbed finders in tests 2025-05-02 14:48:52 +02:00
comment Add --delete-last option to pr comment and issue comment (#10596) 2025-05-01 14:12:55 +01:00
create refactor: address review comments 2026-01-21 18:28:21 +08:00
diff Fix tests 2024-08-16 10:11:52 -07:00
edit fix(pr edit): send empty slices to clear reviewers in replace mode 2026-01-29 10:37:11 -07:00
list fix(pr/shared): delegate query compilation to search package 2025-11-20 13:35:24 +00:00
merge test(pr merge): always assert stderr 2025-07-05 15:02:41 +01:00
ready Cleanup run command stubbed finders in tests 2025-05-02 14:48:52 +02:00
reopen Cleanup run command stubbed finders in tests 2025-05-02 14:48:52 +02:00
revert Return only basic pull request info when reverting a PR 2025-10-22 18:02:35 -04:00
review Cleanup run command stubbed finders in tests 2025-05-02 14:48:52 +02:00
shared Add CCR and reviewer MultiSelectWithSearch 2026-01-27 23:11:51 -07:00
status Rework ref usage when finding and creating PRs 2025-04-15 13:38:10 -06:00
update-branch chore: remove redundant word in comment 2025-03-12 16:13:46 +08:00
view Update PR tests for v2 projects 2025-08-12 21:13:18 -04:00
pr.go feat: implement pr revert 2025-10-06 13:25:31 -04:00