Skip to content

Commit 3716b66

Browse files
Default to excluding bot PRs in GitHub stats
Flip the "Exclude Bot PRs" toggle default to on so bot-authored PRs are excluded unless re-enabled in the UI or via `?exclude_bots=false`. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 0662e08 commit 3716b66

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/github_stats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ def fetch_pr_metrics(merged_since: date, merged_until: date | None = None) -> pd
124124
)
125125

126126
# Allow configuring the bot PR toggle via the `exclude_bots` query param
127-
# (e.g. `?exclude_bots=true`).
127+
# (e.g. `?exclude_bots=false`). Defaults to excluding bot PRs.
128128
exclude_bots_param = st.query_params.get("exclude_bots", None)
129129
default_exclude_bots = (
130130
str(exclude_bots_param).strip().lower() in {"true", "1", "yes", "on"}
131131
if exclude_bots_param is not None
132-
else False
132+
else True
133133
)
134134
exclude_bot_prs = st.toggle("Exclude Bot PRs", value=default_exclude_bots)
135135

0 commit comments

Comments
 (0)