Skip to content

Commit cbdf51b

Browse files
committed
address review
1 parent 7423503 commit cbdf51b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,11 +230,11 @@ runs:
230230
elif [ "$EVENT_NAME" == "issue_comment" ]; then
231231
# Check if comment mentions this specific bot
232232
# Escape special regex characters in bot login to prevent regex injection
233-
if [ -n "APP_SLUG" ]; then
234-
ESCAPED_BOT=$(printf '%s\n' "APP_SLUG" | sed 's/[]\/$*.^[]/\\&/g')
233+
if [ -n "$APP_SLUG" ]; then
234+
ESCAPED_BOT=$(printf '%s\n' "$APP_SLUG" | sed 's/[]\/$*.^[]/\\&/g')
235235
if echo "$COMMENT_BODY" | grep -qE "@${ESCAPED_BOT}\\b"; then
236236
TRIGGER_TYPE="mention"
237-
echo "Detected mention of @APP_SLUG in comment"
237+
echo "Detected mention of @$APP_SLUG in comment"
238238
fi
239239
fi
240240
fi

0 commit comments

Comments
 (0)