GithubImport

Reads GitHub Actions output that was saved to a file: a job log (raw, or as printed by gh run view --log) and the summary from gh run view --json. The runner image block, the operating system group, the runner version and the job env: block become capsule attributes with source log; symptoms come from SymptomExtractor.

Functions

Link copied to clipboard
fun log(text: String, id: String, job: String? = null): Import

The outcome is FAIL when the log holds an error annotation and UNKNOWN otherwise.

Link copied to clipboard
fun run(log: String, summary: String?, id: String, job: String? = null): Import

The log, plus the outcome and steps of summary when it is given.

Link copied to clipboard
fun summary(text: String): Import

The outcome and the steps of a gh run view --json file; there is no capsule.