We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b227f8 commit 0ab7978Copy full SHA for 0ab7978
entrypoint.sh
@@ -7,12 +7,17 @@ echo $INPUT_COMMAND
7
echo $INPUT_OPTIONS
8
echo $EVENT_NAME
9
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
+
16
SUPPORTED_COMMANDS=("/review" "review")
17
18
#INPUT_COMMAND=$(echo "$INPUT_COMMAND" | tr -d '[:space:]')
19
INPUT_COMMAND=$(echo "$INPUT_COMMAND" | xargs)
20
-
21
# Check if the command starts with any of the supported commands
22
for command in "${SUPPORTED_COMMANDS[@]}"; do
23
if [[ "$INPUT_COMMAND" =~ ^$command ]]; then
0 commit comments