Skip to content

Commit f7e17be

Browse files
Merge pull request #77 from DevLoversTeam/feat/github-actions
feat(ci): notify Telegram when a pull request is opened
2 parents 1182add + d227637 commit f7e17be

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Telegram — PR opened
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
7+
jobs:
8+
notify:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Send Telegram message
12+
uses: appleboy/telegram-action@v1.0.1
13+
with:
14+
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
15+
to: ${{ secrets.TELEGRAM_CHAT_ID }}
16+
message: |
17+
🚀 New Pull Request created!
18+
19+
📦 Repository: ${{ github.repository }}
20+
👤 Author: ${{ github.actor }}
21+
📝 Title: ${{ github.event.pull_request.title }}
22+
🌿 Branches: ${{ github.head_ref }} → ${{ github.base_ref }}
23+
24+
🔗 Open PR:
25+
${{ github.event.pull_request.html_url }}

0 commit comments

Comments
 (0)