Skip to content

GITHUB_ACTION: Add bot message for each Pull Request to your Frontend team telegram group

Notifications You must be signed in to change notification settings

lentsd/telegram-notify-github-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telegram-notify-github-action

Add bot message for each Pull Request to your Frontend team telegram group

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

Info in message

  • PR Author
  • PR Name
  • PR Changed files count
  • PR Description
  • Link to PR

Action example

Add it to .github/workflows

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"]]'

teamNicknames

Team nicknames is a string in format:

[[USER_1_GITHUB_NAME, USER_1_TG_NAME],
[USER_2_GITHUB_NAME, USER_2_TG_NAME], [...]]

About

GITHUB_ACTION: Add bot message for each Pull Request to your Frontend team telegram group

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published