Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
send

GitHub Action

Pull Request Updates Telegram

v1.1.0

Pull Request Updates Telegram

send

Pull Request Updates Telegram

Sends a message to a Telegram channel when a pull request is updated

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Pull Request Updates Telegram

uses: Another1dd/[email protected]

Learn more about this action in Another1dd/pr_updates_telegram_action

Choose a version

Telegram Pull Request Updates


A simple Github action that sends a Telegram message when:

  1. Pull request: opened, review requested, synchronize, closed
  2. Pull request review: submitted, edited, dismissed
  3. Pull request review comment: created, edited, deleted

Usage

To use this action you need setup your workflow to trigger on pull request events.

Example

on:
  pull_request:
    types: [ opened, review_requested, synchronize, closed ]
  pull_request_review:
    types: [ submitted, edited, dismissed ]
  pull_request_review_comment:
    types: [ created, edited, deleted ]

You can include this action in your workflow as follow
- name: Pull Request Telegram Updates
  uses: Another1dd/[email protected]
  with: 
    bot_token: '${{ secrets.BotToken }}' # Your bot token from github secrets
    chat_id: '${{ secrets.CHATID }}' # Your chat id from github secrets
    topic_id: '${{ TOPIC_ID }}' # Your topic id

Github Secrets: To add your bot toekn and chat id as a github secret you can refer to Github docs.

Bot Token: To get a bot token you need to use BotFather on Telegram or refer to this on how to create a bot.

Chat ID: You may use this RawDataBot to get the chat id the for a group or a channel.



Notes

When a review is requested this action will run for every reviewer.