RedHatQE / firewatch

React to OpenShift CI test failures
Apache License 2.0
5 stars 11 forks source link

[Enhancement] Allow adding labels to issues via a file in the $SHARED_DIR #185

Closed calebevans closed 4 months ago

calebevans commented 6 months ago

OpenShift CI has a shared directory that persists between the steps run in a pipeline. As part of the product to product pipeline, we would like to dynamically add labels based on the OpenShift version and product versions installed. Our proposed solution to this would be to add functionality to firewatch to read a list of labels found in a specific file in the $SHARED_DIR and add those labels to any new ticket created.

This functionality can be used for more than the use case outlined above, but essentially the flow would be:

  1. Write any additional labels to $SHARED_DIR/firewatch-additional-labels, this can be done over multiple steps throughout the job. They should be separated by a new line (or some other delimiter).
  2. When firewatch is executed, prior to creating any bugs, read the list of labels and ensure they are all applied to any new issue created (along with all the pre-configured labels in the firewatch config).