Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/new-event.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Event Notifier

on:
issues:
types: [opened, reopened]
pull_request_target:
types: [opened, reopened] # zizmor: ignore[dangerous-triggers]

concurrency:
group: ${{ github.workflow }}-${{ github.event.issue.number || github.event.pull_request.number }}
cancel-in-progress: true

permissions:
issues: read
pull-requests: read

jobs:
notify:
name: "Telegram notification"
runs-on: ubuntu-latest
steps:
- name: Send Telegram notification for new issue or pull request
uses: reagento/relator@983edccef69ef9a25b97552daaeaf0f183b470f4 # v1.5.0
with:
tg-bot-token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
tg-chat-id: ${{ vars.TELEGRAM_CHAT_ID }}
github-token: ${{ secrets.GITHUB_TOKEN }}
Loading