Have the API update the labels instead of just adding new ones on
It's appeared mostly in my local tests but now this has appeared in a Merge Request.
The API at the moment is unable to delete labels. For example, if we put a MC Request with the QEE
WG in, the API will add the QEE
label to it. However, when you then change the WG to, say, SL
, the API will also add the SL
label to it. However, it is currently unable to delete the old and outdated QEE
label.
This happened in lhcb-simulation/mc-requests!254 (merged) , where there was an error and they had more events than requested which triggered the PPG Approval
label. This was fixed in the subsequent commits but this label remained.
The API should be able to remove any outdated labels on the MR. Simplest way might be to just delete the labels and regenerate on every push commit, but I'm sure theres a better way to do this.