Allow subscribing to labels (#12743)
- Subscribe (and unsubscribe) for labels
- When an issue/merge request is created, notify all subscribers of all its labels
- When an issue/merge request is edited, notify all subscribers of all its newly-added labels
Marking this WIP for now because I haven't had time to run the entire test suite, but all the tests I touched are green.
TODO
-
Verify that a user is signed in to subscribe/unsubscribe from a label. -
Screenshots -
Merge conflicts -
Integration tests -
issuable.subscribed?
should check subscribers, participants, and subscribers for all the issuable's labels -
When an issuable is relabeled, notify subscribers of the newly added labels only
/cc @DouweM