How to exclude bot from Insights > Contributors #195253
Replies: 6 comments
-
No Built-in Way to Exclude a UserUnfortunately, there's no built-in way to exclude a specific user from the Insights > Contributors graph. GitHub doesn't expose any filter or blocklist for that view. Why Your Bot Might Be Showing UpThe Contributors graph header says "excluding merge commits and bot accounts," but that exclusion only applies to accounts recognized as GitHub Apps (i.e., accounts with a If your release bot is a regular user account rather than a GitHub App, GitHub won't recognize it as a bot and will include it in the graph. The Fix: Re-create the Bot as a GitHub App IdentityIf you control how the bot makes commits, the cleanest solution is to have it commit as a GitHub App identity. GitHub App bot accounts (with a git config user.name "your-bot[bot]"
git config user.email "your-bot[bot]@users.noreply.github.com"If You Can't Change the Bot IdentityThere's no workaround that removes a regular user account from the Contributors view. It's a known limitation that other users have flagged as feedback, so upvoting those discussions is the best way to push GitHub to add a filter toggle. |
Beta Was this translation helpful? Give feedback.
-
|
There is currently no built-in way to exclude a specific user or bot from the Insights → Contributors view on GitHub. The contributor graphs are generated automatically from the repository’s commit history, and GitHub does not provide a setting to filter out:
A few possible workarounds are:
But natively inside GitHub Insights, contributor exclusion/filtering is not currently supported. |
Beta Was this translation helpful? Give feedback.
This comment was marked as low quality.
This comment was marked as low quality.
-
|
Short answer: There's no official way to exclude a bot from Insights > Contributors. The only workaround that sometimes works: 1-Go to Settings → Default branch 2-Temporarily change the default branch to another branch 3-Change it back to main / master This forces GitHub to recalculate contributors. If the bot has no recent commits in your main branch, it might disappear after a few hours/days. If that doesn't work: Unfortunately, you're stuck with the bot in the list. GitHub doesn't offer a "hide bots" feature despite many user requests. |
Beta Was this translation helpful? Give feedback.
-
|
Hey @banagale — there is no built-in setting to exclude a specific bot from the Insights > Contributors graph. Why it's happeningGitHub only auto-excludes bots that are GitHub Apps (usernames ending with What you can doOption 1 (recommended) — Reconfigure your bot to commit as a GitHub App identity: GitHub will then recognize it as a bot and exclude it from the graph. Option 2 — Use the Option 3 — If you cannot change the bot, you are stuck. GitHub does not offer a way to hide a regular user account from that view. Bottom line: Change the bot identity or live with it in the graph. |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Question
Body
An org I work with has a release bot that shows up in the Insights > Contributors list as
#1and it blows away the graphs' perspectives because it has an outsized number of commits.How do you exclude a given user from appearing in the Insights > Contributors view?
Beta Was this translation helpful? Give feedback.
All reactions