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)
| 343 | // as the conclusion is always set to null. If you want a COMPLETED status, |
| 344 | // use `singleCompletedCheckRunWithConclusion`. |
| 345 | func 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 | |
| 363 | func singleCompletedCheckRunWithConclusion(conclusion string) string { |
| 364 | return fmt.Sprintf(` |
no outgoing calls
no test coverage detected