Add bot-author filter with per-metric defaults#4
Merged
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
run_report now returns (bot_policy, results); formatters accept bot_policy as first arg; JSON output gains top-level bot_policy and per-metric exclude_bots; CLI adds mutually-exclusive --exclude-bots/--include-bots. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--exclude-bots/--include-botsmutually-exclusive CLI flags. Default mode applies per-metric bot policies locked inDEFAULT_EXCLUDE_BOTS:deploy-freq-prs,change-failure-rate,change-failure-prs,hotfixes,hotfix-count. Bot PRs ship real changes / real defects.lead-time,review-latency,large-prs,weekend-merges. Bot velocity / scheduling distorts the human signal.summaryresolves each component using its own default.deploy-freqreads thedeploymentstable — noauthorcolumn.bot_policy("default"|"all-excluded"|"all-included") and per-metricexclude_bots(bool|null) so the dashboard can render policy-aware UI.humans onlychip on each KPI tile / panel whose data excludes bots, plus a top banner when a global override is active.authorcolumn (GitHub bot logins are suffix-tagged*[bot]). No schema migration; nodora pullre-run required.Backwards-compatible: reports without the new envelope fields render fine — the dashboard treats missing flags as
null(no chip, no banner).Test plan
🤖 Generated with Claude Code