Get Test Results

Use when user wants to get the test results or test failures for the current branch

tomevault-io Updated

File contents

Skill Instructions

Use the following command to get the branch name

gh pr view --json headRefName -q .headRefName

Use the following command to get the workflow run id

gh run list -b <branch-name> -L 1 --json databaseId -q .[0].databaseId

To download the test results for the workflow run, use the following command

gh run download <workflow-run-id>--output <output-file-path> -p test-results-*

The test results file in trx format will be inside the downloaded zip file.


Source: jaredpar/complog — distributed by TomeVault.

tomevault-io/skills-registry/tree/main/jaredpar--complog--complog commit b331c3e425

Frequently asked questions

npx skillmds@latest add tomevault-io/get-test-results