Merge pull request #912 from cli/pr-create-codeowners-fix
Preserve CODEOWNERS reviewers in `pr create`
This commit is contained in:
commit
3552bca596
2 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue