Skip to content

Add commit-based email lookup fallback to webhook handlers with repo context#2312

Merged
hiroshinishio merged 1 commit intomainfrom
wes
Feb 23, 2026
Merged

Add commit-based email lookup fallback to webhook handlers with repo context#2312
hiroshinishio merged 1 commit intomainfrom
wes

Conversation

@hiroshinishio
Copy link
Collaborator

Summary

  • get_user_public_info now only fetches public GitHub profile data (matches its name) - removed owner/repo params
  • Commit email fallback (get_email_from_commits) moved to each caller that has a specific repo context
  • handle_installation loops all available repos for email lookup instead of picking first one arbitrarily
  • handle_installation_repos_added now captures sender email via upsert_user (sender may differ from original installer)
  • Updated CLAUDE.md with SRP, no Any propagation, and no .get() defaults rules

…il capture to repos_added

- get_user_public_info now only fetches public GitHub profile (no owner/repo params)
- Commit email fallback moved to each caller with specific repo context
- handle_installation loops all repos instead of picking first one
- handle_installation_repos_added captures sender email via upsert_user
- CLAUDE.md: SRP, no Any propagation, no .get() defaults rules
@hiroshinishio hiroshinishio self-assigned this Feb 23, 2026
@hiroshinishio hiroshinishio changed the title Separate public profile lookup from commit email fallback Add commit-based email lookup as fallback across all webhook handlers Feb 23, 2026
@hiroshinishio hiroshinishio changed the title Add commit-based email lookup as fallback across all webhook handlers Add commit-based email lookup fallback to webhook handlers with repo context Feb 23, 2026
@hiroshinishio hiroshinishio merged commit 92be7cf into main Feb 23, 2026
1 check passed
@hiroshinishio hiroshinishio deleted the wes branch February 23, 2026 06:16
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