Skip to content

Handle empty GitHub repos gracefully in get_email_from_commits#2323

Merged
hiroshinishio merged 3 commits intomainfrom
wes
Feb 24, 2026
Merged

Handle empty GitHub repos gracefully in get_email_from_commits#2323
hiroshinishio merged 3 commits intomainfrom
wes

Conversation

@hiroshinishio
Copy link
Collaborator

Summary

  • When a GitHub repo is empty (no commits), the commits API returns 409 Conflict
  • Previously this raised an HTTPError reported to Sentry (AGENT-2TX, AGENT-23G)
  • Now returns None gracefully with an info log, since an empty repo has no commits to extract emails from

Return None when GitHub API returns 409 (empty repo) instead of raising
an HTTPError that gets reported to Sentry as a false alarm.
@hiroshinishio hiroshinishio self-assigned this Feb 24, 2026
@hiroshinishio hiroshinishio merged commit eed2026 into main Feb 24, 2026
1 check passed
@hiroshinishio hiroshinishio deleted the wes branch February 24, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant