MCPcopy
hub / github.com/cli/cli / singleCompletedCheckRunWithConclusion

Function singleCompletedCheckRunWithConclusion

api/pull_request_test.go:363–379  ·  view source on GitHub ↗
(conclusion string)

Source from the content-addressed store, hash-verified

361}
362
363func singleCompletedCheckRunWithConclusion(conclusion string) string {
364 return fmt.Sprintf(`
365 { "statusCheckRollup": { "nodes": [{ "commit": {
366 "statusCheckRollup": {
367 "contexts": {
368 "nodes": [
369 {
370 "__typename": "CheckRun",
371 "status": "COMPLETED",
372 "conclusion": "%s"
373 }
374 ]
375 }
376 }
377 } }] } }
378 `, conclusion)
379}
380
381func singleStatusContextWithState(state string) string {
382 return fmt.Sprintf(`

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected