conventional-release-labels icon indicating copy to clipboard operation
conventional-release-labels copied to clipboard

Config Option: 'type_labels' expects JSON, not YAML map

Open grayside opened this issue 2 years ago • 2 comments

Despite the example type_labels mapping showing a serialized JSON 1-liner, I didn't process the idea of embedding JSON config inside YAML. This led to a somewhat obscure error when my workflow tried to execute:

Invalid workflow file
The workflow is not valid. .github/workflows/auto-label.yml (Line: 32, Col: 13): A mapping was not expected

I have a pending fix in https://github.com/GoogleCloudPlatform/emblem/pull/391.

More explicit documentation that JSON string is expected (such as a complete example showing use of that configuration), or support for a YAML maps would have made my experience as a first-time user easier.

grayside avatar May 20 '22 22:05 grayside