push of a new branch + commits : only one entry in project activity and an incomplete notification email is received
Summary
If you create a new branch locally, then add commits to it (one or more), when you push the whole thing to GitLab you receive a single notification email, which only concerns the creation of the branch but not the commits.
Side effect (or cause): there is also only one single entry in activity for branch creation, commits does not appear.
Steps to reproduce
- Turn on notification for all activity
- In a bash console:
$ git checkout -b "test-bug-branch-push"
$ touch foo
$ git add foo
$ git commit -m "first commit with foo"
$ touch bar
$ git add bar
$ git commit -m "second commit with bar"
$ git push --set-upstream origin test-bug-branch-push
What is the current bug behavior?
On Project Activity: only one entry for branch creation, not for the commits
A mail will be received for the creation of the branch: [Git][group/repo] Pushed new branch test-bug-email-notification
But no email nor information about the two commits.
What is the expected correct behavior?
Project Activity should not only show the branch creation, but also the commits pushed with the branch. we should receive 2 mails, one for the creation of the branch, and another one summarizing the 2 commits; or at least one mail but also containing the information on the commits
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
Tested on GitLab EE 15.4 in a docker, and on Gitlab.com
Gitlab EE 15.4 docker version.
You should be able to reproduce the bug on any env