Skip to content

Commit 17bd25a

Browse files
authored
Merge pull request #57 from adonis0147/master
feat: enable comments for pull_request_target event
2 parents a32a0ec + 54814db commit 17bd25a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ if ((CHECKBASHISMS_ENABLE == 1)); then
223223
fi
224224

225225
if ((shellcheck_code != 0 || shfmt_code != 0)); then
226-
if [ "$GITHUB_EVENT_NAME" == "pull_request" ] && ((SH_CHECKER_COMMENT == 1)); then
226+
if [[ "$GITHUB_EVENT_NAME" == "pull_request" || "$GITHUB_EVENT_NAME" == "pull_request_target" ]] && ((SH_CHECKER_COMMENT == 1)); then
227227
_comment_on_github "$shellcheck_error" "$shfmt_error"
228228
fi
229229
fi

0 commit comments

Comments
 (0)