-
Notifications
You must be signed in to change notification settings - Fork 5
28 lines (23 loc) · 755 Bytes
/
Copy pathissue.yml
File metadata and controls
28 lines (23 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Notify on Issue or Comment
on:
issues:
types: [opened, edited]
issue_comment:
types: [created, edited]
jobs:
notify-discord:
runs-on: ubuntu-latest
steps:
- name: Notification
uses: appleboy/telegram-action@master
with:
token: ${{ secrets.BOT_TOKEN }}
to: ${{ secrets.CHAT_ID }}
message: |
Repository: ${{ github.repository }}
Event: ${{ github.event_name }}
Action: ${{ github.event.action }}
Issue Title: ${{ github.event.issue.title }}
Issue URL: ${{ github.event.issue.html_url }}
User: ${{ github.event.issue.user.login }}
Comment: ${{ github.event.comment.body || 'No comment' }}