holmari / gerritstats

Tool for creating statistics from a Gerrit repository
MIT License
193 stars 54 forks source link

--exclude works only emails. #29

Closed rasjani closed 5 years ago

rasjani commented 7 years ago

I tried to originally remove few jenkins bots (making comments to gerrit reviews based on build results) from gerritstats but it didnt seem to work. Help says following:

--exclude If specified, the comma-separated list of identities will be excluded from all generated statistics. Default: [] I passed "jenkins,fin-jenkins" but neither of the accounts where removed from statistics. Fix was quite evident after browsing the javascript: exclude expects emails.

However, in my case, one of the bot does not provide email in their gerrit messages so gerritstats is not able to remove it.

This is another usecase for supporting mailmap - bots/people who do not have proper git config setup can then be fixed/grouped into a single user during generation of the stats. See #26

castulo commented 6 years ago

I am having the same problem, my Jenkins bot doesn't have email. I cannot exclude it.