"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/cmd/pr/merge/merge_test.go" between
gh-cli-1.10.2.tar.gz and gh-cli-1.10.3.tar.gz

About: GitHub CLI is GitHub’s official command line tool.

merge_test.go  (gh-cli-1.10.2):merge_test.go  (gh-cli-1.10.3)
skipping to change at line 467 skipping to change at line 467
defer http.Verify(t) defer http.Verify(t)
pr := &api.PullRequest{ pr := &api.PullRequest{
ID: "PR_10", ID: "PR_10",
Number: 10, Number: 10,
Title: "Blueberries are a good fruit", Title: "Blueberries are a good fruit",
State: "OPEN", State: "OPEN",
} }
stubCommit(pr, "COMMITSHA1") stubCommit(pr, "COMMITSHA1")
shared.RunCommandFinder( prFinder := shared.RunCommandFinder("", pr, baseRepo("OWNER", "REPO", "ma
"", ster"))
pr, prFinder.ExpectFields([]string{"id", "number", "state", "title", "lastCom
baseRepo("OWNER", "REPO", "master"), mit", "mergeable", "headRepositoryOwner", "headRefName"})
)
http.Register( http.Register(
httpmock.GraphQL(`mutation PullRequestMerge\b`), httpmock.GraphQL(`mutation PullRequestMerge\b`),
httpmock.GraphQLMutation(`{}`, func(input map[string]interface{}) { httpmock.GraphQLMutation(`{}`, func(input map[string]interface{}) {
assert.Equal(t, "PR_10", input["pullRequestId"].(string)) assert.Equal(t, "PR_10", input["pullRequestId"].(string))
assert.Equal(t, "MERGE", input["mergeMethod"].(string)) assert.Equal(t, "MERGE", input["mergeMethod"].(string))
assert.NotContains(t, input, "commitHeadline") assert.NotContains(t, input, "commitHeadline")
})) }))
cs, cmdTeardown := run.Stub() cs, cmdTeardown := run.Stub()
skipping to change at line 508 skipping to change at line 505
defer http.Verify(t) defer http.Verify(t)
pr := &api.PullRequest{ pr := &api.PullRequest{
ID: "PR_10", ID: "PR_10",
Number: 10, Number: 10,
Title: "Blueberries are a good fruit", Title: "Blueberries are a good fruit",
State: "OPEN", State: "OPEN",
} }
stubCommit(pr, "COMMITSHA1") stubCommit(pr, "COMMITSHA1")
shared.RunCommandFinder( prFinder := shared.RunCommandFinder("", pr, baseRepo("OWNER", "REPO", "ma
"", ster"))
pr, prFinder.ExpectFields([]string{"id", "number", "state", "title", "lastCom
baseRepo("OWNER", "REPO", "master"), mit", "mergeable", "headRepositoryOwner", "headRefName"})
)
http.Register( http.Register(
httpmock.GraphQL(`mutation PullRequestMerge\b`), httpmock.GraphQL(`mutation PullRequestMerge\b`),
httpmock.GraphQLMutation(`{}`, func(input map[string]interface{}) { httpmock.GraphQLMutation(`{}`, func(input map[string]interface{}) {
assert.Equal(t, "PR_10", input["pullRequestId"].(string)) assert.Equal(t, "PR_10", input["pullRequestId"].(string))
assert.Equal(t, "MERGE", input["mergeMethod"].(string)) assert.Equal(t, "MERGE", input["mergeMethod"].(string))
assert.NotContains(t, input, "commitHeadline") assert.NotContains(t, input, "commitHeadline")
})) }))
cs, cmdTeardown := run.Stub() cs, cmdTeardown := run.Stub()
 End of changes. 2 change blocks. 
10 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)