Slack notification setting "Notify only default branch" is not respected
Summary
The checkbox "Notify only default branch" of the slack notifications integration is not respected. Gitlab 9.2.5
This feature has been introduced in !10959 (merged) This bug might be related to #31173 (closed)
Steps to reproduce
- Enable and configure slack integration "Slack notifications"
- Check "Notify only default branch" (default)
- Push commits to a non-default branch
What is the current bug behavior?
Slack notification is sent
What is the expected correct behavior?
No slack notification should be sent.
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Ubuntu 14.04 Current User: git Using RVM: no Ruby Version: 2.3.3p222 Gem Version: 2.6.6 Bundler Version:1.13.7 Rake Version: 10.5.0 Redis Version: 3.2.5 Git Version: 2.11.1 Sidekiq Version:5.0.0GitLab information Version: 9.2.5 Revision: 6f2e590 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: https://gitlab.mydomain.tld HTTP Clone URL: https://gitlab.mydomain.tld/some-group/some-project.git SSH Clone URL: git@gitlab.mydomain.tld:some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers: google_oauth2
GitLab Shell Version: 5.0.4 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git
Edited by Janek Thomaschewski