This commit is contained in:
Grol Grol 2025-03-13 21:15:02 +03:00
parent ee9afacc67
commit e4913536a5

View file

@ -25,7 +25,6 @@ jobs:
TITLE="${{ github.event.issue.title || github.event.pull_request.title || 'Комментарий' }}"
URL="${{ github.event.issue.html_url || github.event.pull_request.html_url || github.event.comment.html_url || github.event.review.html_url }}"
# Escape backticks and parentheses for Markdown
SAFE_TITLE=$(echo "$TITLE" | sed 's/`/\\`/g' | sed 's/(/\\(/g' | sed 's/)/\\)/g')
TEXT="*Событие в ${REPO}*\nТип: \`${EVENT_TYPE}\`\nДействие: \`${ACTION}\`\nЗаголовок: \`${SAFE_TITLE}\`\n[Открыть](${URL})"
@ -34,4 +33,4 @@ jobs:
https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage \
-d chat_id="${TELEGRAM_CHAT_ID}" \
-d parse_mode=Markdown \
--data-urlencode text="${TEXT}"
-d text="${TEXT}"