teoxoy / profile-readme-stats

Showcase your github stats on your profile README.md
https://github.com/marketplace/actions/profile-readme-stats
MIT License
245 stars 85 forks source link

ignore bot commits #24

Closed eoli3n closed 2 weeks ago

eoli3n commented 8 months ago

I just tried to fix my count, by excluding bot commit count as https://github.com/eoli3n/eoli3n/commit/50de2332337e4b45cdb1025b5053335e5d68fea3

And

$ git config user.name "Bot"
$ git config user.email "bot@github.com"
$ git rebase -r --root --exec "git commit --amend --no-edit --reset-author"
$ git push --force

https://github.com/eoli3n/eoli3n/commits/main

Now user/email for those commits dismatches my account email, but commits still appear in count and contribution grid. Any idea ?

eoli3n commented 8 months ago

https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-github-profile/managing-contribution-settings-on-your-profile/why-are-my-contributions-not-showing-up-on-my-profile#commit-was-made-less-than-24-hours-ago

Wait and see

teoxoy commented 8 months ago

I'd just use (they are also in the readme):

git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com

I don't remember where exactly I got those from but they've been working well for me.

teoxoy commented 2 weeks ago

Using a bot user should be the proper way to commit these updates, closing.