Add an option to only post commit messages to Slack for the master branch
When you have people working on feature branches the Slack notifications can become noisy. We mostly want to know about merges/commits to master
. I suppose taking this feature to the next level you would allow a selectable list of "important" branches.
A different direction to take this is to add a hook in the .gitlab-ci.yml
file that triggers the same slack notification. This would allow really granular control over what's sent to Slack. You could leave the existing UI for folks that want a one-click setup.