-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (31 loc) · 1.37 KB
/
ci.yml
File metadata and controls
37 lines (31 loc) · 1.37 KB
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
29
30
31
32
33
34
35
36
37
name: Pull request
on:
pull_request:
types: [opened, closed, reopened, ready_for_review, review_requested]
jobs:
notifications:
name: Telegram notifications
runs-on: ubuntu-latest
steps:
- name: Send telegram message on pull request to review
if: github.event.pull_request.merged == false && github.event.action != 'closed'
uses: appleboy/telegram-action@2e9996f96e095a537aa4442da4af41ca7b594fba
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
format: markdown
message: |
${{ github.repository }} repository
${{ github.actor }} created new PR: [#${{ github.event.number }}](${{ github.event.pull_request.html_url }})
Title: ${{ github.event.pull_request.title }}
- name: Send telegram message on pull request merged to main
if: github.event.pull_request.merged == true
uses: appleboy/telegram-action@2e9996f96e095a537aa4442da4af41ca7b594fba
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
format: markdown
message: |
${{ github.repository }} repository
${{ github.actor }} merged PR: [#${{ github.event.number }}](${{ github.event.pull_request.html_url }})
Title: ${{ github.event.pull_request.title }}