MCPcopy Index your code
hub / github.com/cli/cli / singleCheckRunWithStatus

Function singleCheckRunWithStatus

api/pull_request_test.go:345–361  ·  view source on GitHub ↗

Note that it would be incorrect to provide a status of COMPLETED here as the conclusion is always set to null. If you want a COMPLETED status, use `singleCompletedCheckRunWithConclusion`.

(status string)

Source from the content-addressed store, hash-verified

343// as the conclusion is always set to null. If you want a COMPLETED status,
344// use `singleCompletedCheckRunWithConclusion`.
345func singleCheckRunWithStatus(status string) string {
346 return fmt.Sprintf(`
347 { "statusCheckRollup": { "nodes": [{ "commit": {
348 "statusCheckRollup": {
349 "contexts": {
350 "nodes": [
351 {
352 "__typename": "CheckRun",
353 "status": "%s",
354 "conclusion": null
355 }
356 ]
357 }
358 }
359 } }] } }
360 `, status)
361}
362
363func singleCompletedCheckRunWithConclusion(conclusion string) string {
364 return fmt.Sprintf(`

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected