Push webhook - wrong rev-list count?
Created by: gaui
I would like to get someones opinion on this. We have a push webhook that posts messages to Slack. Everytime we were pushing new feature-branches, we would always get a sky-high commit count. Like we were pushing 420 commits, but it was a brand new branch.
I think the push webhook property total_commits_count
is getting a wrong count, because of a wrong rev-list
logic.
Let's say there are 420 commits between master
and dev
, so when I branch off of dev
and push that branch, the total_commits_count
is 420
but it really should be 0
- right?
I think the webhook is always checking diff count from master
branch (judging frome screenshot below), when it should be checking diff count from parent branch.
$ git rev-list master...feature/SWSA-567 --count
420
$ git rev-list dev...feature/SWSA-567 --count
0