Skip to content

[CI] Fix detecting usage of private emails #19394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: sycl
Choose a base branch
from

Conversation

uditagarwal97
Copy link
Contributor

@uditagarwal97 uditagarwal97 commented Jul 10, 2025

fixes #17675

Currently, in the workflow, we only check the email that was used for the latest commit in the PR. This email can differ from the email settings on the GH UI, from which PR will be authored, once we merge it.

@uditagarwal97 uditagarwal97 changed the title typo [CI] Fix detecting usage of private emails Jul 10, 2025
@uditagarwal97 uditagarwal97 self-assigned this Jul 10, 2025
@uditagarwal97 uditagarwal97 reopened this Jul 10, 2025
@uditagarwal97 uditagarwal97 force-pushed the private/udit/email_test branch from 5bb431a to 178d1e6 Compare July 10, 2025 19:23
@uditagarwal97 uditagarwal97 reopened this Jul 10, 2025
@uditagarwal97 uditagarwal97 reopened this Jul 10, 2025
Copy link
Contributor

⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo.
Please turn off Keep my email addresses private setting in your account.
See LLVM Discourse for more information.

Signed-off-by: Agarwal, Udit <[email protected]>
@uditagarwal97 uditagarwal97 force-pushed the private/udit/email_test branch from 1c31737 to 93b0594 Compare July 10, 2025 22:04
@uditagarwal97 uditagarwal97 marked this pull request as ready for review July 10, 2025 22:15
@uditagarwal97 uditagarwal97 requested a review from a team as a code owner July 10, 2025 22:15
@uditagarwal97
Copy link
Contributor Author

PS:- the "private email" workflow is failing in the precommit because I've made my email hidden in the GH profile. To demonstrate the changes made in this PR>

@@ -27,8 +27,11 @@ jobs:
# Create empty comment file
echo "[]" > comments

# If author's email is hidden in GH's settings, github.event.pull_request.user.email
# will be null and PR will be authored by noreply.github.com.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we submit this fix upstream too? i think ours is literally theirs with the branches changed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Totally. On it.

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.

[CI] Email check is not functioning correctly
2 participants