Skip to content

Commit

Permalink
feat: enable comments for pull_request_target event
Browse files Browse the repository at this point in the history
  • Loading branch information
adonis0147 committed Sep 15, 2022
1 parent edd0e45 commit 54814db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ if ((CHECKBASHISMS_ENABLE == 1)); then
fi

if ((shellcheck_code != 0 || shfmt_code != 0)); then
if [ "$GITHUB_EVENT_NAME" == "pull_request" ] && ((SH_CHECKER_COMMENT == 1)); then
if [[ "$GITHUB_EVENT_NAME" == "pull_request" || "$GITHUB_EVENT_NAME" == "pull_request_target" ]] && ((SH_CHECKER_COMMENT == 1)); then
_comment_on_github "$shellcheck_error" "$shfmt_error"
fi
fi
Expand Down

0 comments on commit 54814db

Please sign in to comment.