cli/pkg/cmd/pr/edit
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
..
edit.go Remove redundant comment 2026-01-28 10:50:54 -07:00
edit_test.go fix(pr edit): send empty slices to clear reviewers in replace mode 2026-01-29 10:37:11 -07:00