diff --git a/api/queries_pr.go b/api/queries_pr.go index c1afc6bc9..c0b16f3c4 100644 --- a/api/queries_pr.go +++ b/api/queries_pr.go @@ -667,6 +667,7 @@ func CreatePullRequest(client *Client, repo *Repository, params map[string]inter requestReviews(input: $input) { clientMutationId } }` reviewParams["pullRequestId"] = pr.ID + reviewParams["union"] = true variables := map[string]interface{}{ "input": reviewParams, } diff --git a/command/pr_create_test.go b/command/pr_create_test.go index 85966aa72..d6b89a6b0 100644 --- a/command/pr_create_test.go +++ b/command/pr_create_test.go @@ -184,6 +184,7 @@ func TestPRCreate_metadata(t *testing.T) { eq(t, inputs["pullRequestId"], "NEWPULLID") eq(t, inputs["userIds"], []interface{}{"HUBOTID"}) eq(t, inputs["teamIds"], []interface{}{"COREID"}) + eq(t, inputs["union"], true) })) cs, cmdTeardown := test.InitCmdStubber()