Bot for ensuring the we use only one of the labels within the scope
GitLab Premium has a feature called scoped labels, which allows only one label from a given scope to be set on an issue.
Scopes are prefixed with
With bug migration from bugzilla to GitLab we followed this notation whenever applicable hoping that this feature would eventually end up in community edition.
In the meantime we can create a bot that periodically queries issues looking for such conflicts and then resolves them by dropping all but the most recently applied label from a given scope.