Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #8665

Closed
Open
Created Jan 27, 2015 by Administrator@rootOwner

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.

Wrong vs. right

$ git rev-list master...feature/SWSA-567 --count
420

$ git rev-list dev...feature/SWSA-567 --count
0
Assignee
Assign to
Time tracking