All you need is:
- Create a telegram bot and add it to your group
Add these parameters to github secrets for your repository
- Telegram bot token
- Telegram chat id
Change the nicknames of the teams from the example to yours
- PR Author
- PR Name
- PR Changed files count
- PR Description
- Link to PR
name: New PR Telegram Notify
on:
pull_request:
types: [opened, reopened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Telegram Notify
uses: dnotrad/telegram-notify-github-action@master
with:
chat: ${{ secrets.chat }}
token: ${{ secrets.token }}
ghToken: ${{ secrets.GITHUB_TOKEN }}
teamNicknames: '[["timkimtim","tim_kim_tim"],["overkam","plsdie"]]'