MCPcopy Create free account
hub / github.com/cli/cli / stubCommit

Function stubCommit

pkg/cmd/pr/merge/merge_test.go:244–248  ·  view source on GitHub ↗
(pr *api.PullRequest, oid string)

Source from the content-addressed store, hash-verified

242}
243
244func stubCommit(pr *api.PullRequest, oid string) {
245 pr.Commits.Nodes = append(pr.Commits.Nodes, api.PullRequestCommit{
246 Commit: api.PullRequestCommitCommit{OID: oid},
247 })
248}
249
250// TODO port to new style tests
251func runCommand(rt http.RoundTripper, pm *prompter.PrompterMock, branch string, isTTY bool, cli string) (*test.CmdOut, error) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected