wtsi-npg / npg_conda

NPG Conda recipes and tools
1 stars 15 forks source link

Add labels to bot-created GitLab merge requests #248

Closed kjsanger closed 3 years ago

kjsanger commented 3 years ago

GitLab doesn't seem to support matching 'bot users when filtering merge requests, making it hard to find human merge requests if there are a lot of 'bot requests open. GitLab does support filtering on labels, so this change allows a comma-delimited list of labels (as in the GitLab merge request API) to be added to each merge request opened.

A new CLI option is added to the script. The labels default to a single label "npg_automation". This is intended to be a general label that may be applied to many repositories and forms of automation. It is intended to indicate that an item is the product of automation.

kjsanger commented 3 years ago

This looks fine, but I don't know when there would be user mrs on the mirror, unless it was for testing something in the CI.

There aren't, but my query is for all open MRs across the team, looking for any that I can review or merge.