Chat notification when branch pipelines flip from failing to passing
Problem to solve
Using only the events currently supported by the Slack Notifications Service, it's difficult to tell when a branch's pipelines have been fixed.
Further details
At GitLab, we use our own Slack Notifications Service to post notifications to our #development Slack channel when pipelines run against master
fail.
This is great info, but what I often want to know is the current state of the branch. For example, I may want to rebase
my feature branch on master
, but I only want to do this if I know master
is in a passing state. With our current setup, the only indication that master
is clean is when the failure notifications stop.
One obvious solution is to turn on notifications for successful pipelines, but this would create a lot of noise in the channel.
Proposal
Add a new chat notification event that is triggered when a branch's pipelines' status changes from failing to succeeding. This would give me the info I need - that master
has been fixed - without adding the noise of pipeline success notifications.
It might also be valuable to add the opposite event - when the pipelines go from succeeding to failing.
Intended users
gitlab-ce~9335216