Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit c473b71

Browse files
authored
Fixed bug with USER_LOGIN (#78)
1 parent f9a0642 commit c473b71

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ BASE_REPO=$(echo "$pr_resp" | jq -r .base.repo.full_name)
5050
BASE_BRANCH=$(echo "$pr_resp" | jq -r .base.ref)
5151

5252
USER_LOGIN=$(jq -r ".comment.user.login" "$GITHUB_EVENT_PATH")
53+
54+
if [[ "$USER_LOGIN" == "null" ]]; then
55+
USER_LOGIN=$(jq -r ".pull_request.user.login" "$GITHUB_EVENT_PATH")
56+
fi
5357

5458
user_resp=$(curl -X GET -s -H "${AUTH_HEADER}" -H "${API_HEADER}" \
5559
"${URI}/users/${USER_LOGIN}")

0 commit comments

Comments
 (0)