File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 2424 env :
2525 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2626 run : |
27- # Use Github GraphQL APIs to get the email associated with the PR author.
27+ # Use Github GraphQL APIs to get the email associated with the PR author because this takes into account the GitHub settings for email privacy .
2828 query='
2929 query($login: String!) {
3030 user(login: $login) {
3737 email=$(gh api graphql -f login="$PR_AUTHOR" -f query="$query" -H "Authorization: Bearer $GITHUB_TOKEN" --jq '.data.user.email')
3838 echo "EMAIL_AUTHOR_GH_UI=$email" >> "$GITHUB_OUTPUT"
3939
40- # Print the email to the log for debugging purposes.
41- echo "GitHub user's email: $email"
42-
4340 # Create empty comment file
4441 echo "[]" > comments
4542
You can’t perform that action at this time.
0 commit comments