Skip to content

Commit

Permalink
Merge pull request #57 from adonis0147/master
Browse files Browse the repository at this point in the history
feat: enable comments for pull_request_target event
  • Loading branch information
luizm authored Sep 16, 2024
2 parents a32a0ec + 54814db commit 17bd25a
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 @@ -223,7 +223,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 17bd25a

Please sign in to comment.