[llvm] [CI] Make email check workflow fail when author's email is private in Github UI (PR #148694)
Udit Kumar Agarwal via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 15 10:54:03 PDT 2025
uditagarwal97 wrote:
> Is there documentation on what the GraphQL query is supposed to return given the different settings?
>
> I know Github lets me select from multiple emails when merging. I'm not sure if there's a default or how it gets setup and I would be more comfortable approving this patch with a better understanding of how these all interact.
@boomanaiden154
I think GraphQL returns your default public email. Here's an experiment I did:
Workflow run after I changed my default public email: https://github.com/llvm/llvm-project/actions/runs/16300461944/job/46033416527?pr=148694#step:3:24 (compare it with the previous run https://github.com/llvm/llvm-project/actions/runs/16279496749/job/45966062207)
Changing my default public email also changes the email returned by GraphQL.
Regarding official documentation, the closest one I found is: https://docs.github.com/en/graphql/reference/objects#user
`user.email` returns the user's publicly visible profile email.
https://github.com/llvm/llvm-project/pull/148694
More information about the llvm-commits
mailing list