Skip to content

Commit 0ab7978

Browse files
Update entrypoint.sh
1 parent 2b227f8 commit 0ab7978

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

entrypoint.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ echo $INPUT_COMMAND
77
echo $INPUT_OPTIONS
88
echo $EVENT_NAME
99

10+
if [ "$EVENT_NAME" = "pull_request" ]; then
11+
INPUT_OPTIONS="$INPUT_OPTIONS --cr_event_type=automated"
12+
else
13+
INPUT_OPTIONS="$INPUT_OPTIONS --cr_event_type=manual"
14+
fi
15+
1016
SUPPORTED_COMMANDS=("/review" "review")
1117

1218
#INPUT_COMMAND=$(echo "$INPUT_COMMAND" | tr -d '[:space:]')
1319
INPUT_COMMAND=$(echo "$INPUT_COMMAND" | xargs)
1420

15-
1621
# Check if the command starts with any of the supported commands
1722
for command in "${SUPPORTED_COMMANDS[@]}"; do
1823
if [[ "$INPUT_COMMAND" =~ ^$command ]]; then

0 commit comments

Comments
 (0)