mirror of
https://github.com/groldsf/obsidian_check_plugin.git
synced 2026-07-22 05:37:48 +00:00
Update tg_notify.yml
This commit is contained in:
parent
bbbef6f9c8
commit
d23be52814
1 changed files with 2 additions and 2 deletions
4
.github/workflows/tg_notify.yml
vendored
4
.github/workflows/tg_notify.yml
vendored
|
|
@ -19,7 +19,7 @@ jobs:
|
||||||
id: prepare_message # Добавляем ID шагу, чтобы ссылаться на его output
|
id: prepare_message # Добавляем ID шагу, чтобы ссылаться на его output
|
||||||
run: |
|
run: |
|
||||||
TITLE="${{ github.event.issue.title || github.event.pull_request.title || 'Комментарий' }}"
|
TITLE="${{ github.event.issue.title || github.event.pull_request.title || 'Комментарий' }}"
|
||||||
BODY="${{ github.event.comment.body || github.event.review.body || '' }}" # Добавил github.event.review.body для pull_request_review
|
BODY="${{ github.event.issue.body || github.event.comment.body || github.event.review.body || '' }}" # Добавил github.event.review.body для pull_request_review
|
||||||
URL="${{ github.event.issue.html_url || github.event.pull_request.html_url || github.event.comment.html_url || github.event.review.html_url }}"
|
URL="${{ github.event.issue.html_url || github.event.pull_request.html_url || github.event.comment.html_url || github.event.review.html_url }}"
|
||||||
|
|
||||||
# Формируем полное сообщение
|
# Формируем полное сообщение
|
||||||
|
|
@ -55,7 +55,7 @@ jobs:
|
||||||
# Важно: нужно корректно обрабатывать пустые значения, если некоторых полей нет в событии
|
# Важно: нужно корректно обрабатывать пустые значения, если некоторых полей нет в событии
|
||||||
env:
|
env:
|
||||||
TITLE: ${{ github.event.issue.title || github.event.pull_request.title || 'Комментарий к событию' }}
|
TITLE: ${{ github.event.issue.title || github.event.pull_request.title || 'Комментарий к событию' }}
|
||||||
BODY: ${{ github.event.comment.body || github.event.review.body || '' }} # Если комментарий пуст или это не событие комментария
|
BODY: ${{ github.event.issue.body || github.event.comment.body || github.event.review.body || '' }} # Если комментарий пуст или это не событие комментария
|
||||||
URL: ${{ github.event.issue.html_url || github.event.pull_request.html_url || github.event.comment.html_url || github.event.review.html_url }}
|
URL: ${{ github.event.issue.html_url || github.event.pull_request.html_url || github.event.comment.html_url || github.event.review.html_url }}
|
||||||
|
|
||||||
- name: Send Telegram Message
|
- name: Send Telegram Message
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue