We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7423503 commit cbdf51bCopy full SHA for cbdf51b
action.yml
@@ -230,11 +230,11 @@ runs:
230
elif [ "$EVENT_NAME" == "issue_comment" ]; then
231
# Check if comment mentions this specific bot
232
# 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')
+ if [ -n "$APP_SLUG" ]; then
+ ESCAPED_BOT=$(printf '%s\n' "$APP_SLUG" | sed 's/[]\/$*.^[]/\\&/g')
235
if echo "$COMMENT_BODY" | grep -qE "@${ESCAPED_BOT}\\b"; then
236
TRIGGER_TYPE="mention"
237
- echo "Detected mention of @APP_SLUG in comment"
+ echo "Detected mention of @$APP_SLUG in comment"
238
fi
239
240
0 commit comments