This PR adds the missing 'labels' query attribute needed to retrieve the workflow labels along with the rest of the metadata.
Also, the runs dump sub-cmd has been refactored to improve code readability and test coverage.
Guidelines for testing
In order to test the changes an existing workflow run with labels is needed, however, the example run used in the original issue can be re-used here.
Description
Closes #384
This PR adds the missing 'labels' query attribute needed to retrieve the workflow labels along with the rest of the metadata. Also, the
runs dump
sub-cmd has been refactored to improve code readability and test coverage.Guidelines for testing
In order to test the changes an existing workflow run with labels is needed, however, the example run used in the original issue can be re-used here.
Dump the workflow run:
Extract the files in the current directory:
Check that the file
workflow-metadata.json
contains a 'labels' field: