glideinWMS / glideinwms

The glideinWMS Project
http://tinyurl.com/glideinwms
Apache License 2.0
16 stars 45 forks source link

Improved regexes for issue labeler workflow #246

Closed namrathaurs closed 1 year ago

namrathaurs commented 1 year ago

Based on the recent runs of the issue labeler workflow deployed on the GWMS repository, this PR addresses some of the modifications to the existing workflow. The workflow runs revealed that

  1. the label other gets always assigned, even when the issue description includes other affected components. The expected behavior was to have the other label assigned only when the issue description lists an affected component that is not listed in the set of components considered.
  2. the labels did not get assigned when the descriptions of the categories/keywords were included along with the user-specified value for that keyword. The initial assumption was that users when opening issues will remove the descriptions and only mention the values for those keywords. But there may be times when that might not happen, meaning the descriptions might be preserved as-is along with the values specified by users when opening issues.

For 1, the generic regular expression (regex) pattern is removed and instead an improvised regex pattern has been added where component names not listed in the starter set will be matched and assigned the other label. For 2, the regular expressions have been improvised to process descriptions of categories when determining labels for the corresponding category.