We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a29f375 commit 6f1a434Copy full SHA for 6f1a434
merge
@@ -16,7 +16,10 @@ gh api "/users/$SENDER" > "$USER_JSON"
16
export GIT_AUTHOR_NAME=$(jq -r .name "$USER_JSON")
17
export GIT_AUTHOR_EMAIL=$(jq -r '.email // empty' "$USER_JSON")
18
if [ -z "$GIT_AUTHOR_EMAIL" ]; then
19
- GIT_AUTHOR_EMAIL=$(jq -r '.pusher.email' "$GITHUB_EVENT_PATH")
+ GIT_AUTHOR_EMAIL=$(jq -r '.pusher.email // empty' "$GITHUB_EVENT_PATH")
20
+ if [ -z "$GIT_AUTHOR_EMAIL" ]; then
21
+ GIT_AUTHOR_EMAIL=$(jq -r '((.id|tostring + "+") + .login + "@users.noreply.github.com")' "$USER_JSON")
22
+ fi
23
fi
24
export GIT_COMMITTER_NAME=GitHub
25
export GIT_COMMITTER_EMAIL=noreply@github.com
0 commit comments