Skip to content

Allow contributor resolution to identify github users from their noreply addresses#3786

Draft
MoralCode wants to merge 3 commits intomainfrom
feat/resolution_shortcut_ghnoreply
Draft

Allow contributor resolution to identify github users from their noreply addresses#3786
MoralCode wants to merge 3 commits intomainfrom
feat/resolution_shortcut_ghnoreply

Conversation

@MoralCode
Copy link
Contributor

Description
This PR shows what an implementation might look like if we wanted to account for github noreply user emails in the contributor resolution process since this specific email format makes it easier to connect a user to their commits with fewer API calls.

This PR fixes #3784

Notes for Reviewers
Not yet tested, can do so if this is a desireable change

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
…are found

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
@MoralCode MoralCode requested a review from sgoggins as a code owner March 20, 2026 21:30
@MoralCode MoralCode marked this pull request as draft March 20, 2026 21:31

# to do this we should first do some sanity checks on the email
email_check = sanity_check_email(email)
if email_check is not None and 'users.noreply.github.com' in email_check:

Check failure

Code scanning / CodeQL

Incomplete URL substring sanitization High

The string
users.noreply.github.com
may be at an arbitrary position in the sanitized URL.
# if we had a noreply address and there wasnt an issue parsing a numeric user ID,
# return now that we have the user record to validate that the profile we fetched for the username
# does indeed match the correct user
if email_check is not None and 'users.noreply.github.com' in email_check and user_id is not None:

Check failure

Code scanning / CodeQL

Incomplete URL substring sanitization High

The string
users.noreply.github.com
may be at an arbitrary position in the sanitized URL.
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.

facade: we can resolve contributors with github noreply addresses in 1 api call

1 participant