An open API service indexing awesome lists of open source software.

https://github.com/technance-foundation/github-action-telegram-notifications

:octocat: GitHub Action to send Telegram notifications on pull request events
https://github.com/technance-foundation/github-action-telegram-notifications

gh-actions github github-actions pull-requests telegram telegram-bot yml

Last synced: 3 months ago
JSON representation

:octocat: GitHub Action to send Telegram notifications on pull request events

Awesome Lists containing this project

README

          

# Telegram Notifications GH Action

> [!WARNING]
>
> **DEPRECATION NOTICE**
>
> This action has moved to **[technance-foundation/github-actions](https://github.com/technance-foundation/github-actions)**:
>
> - Telegram Notifications: `technance-foundation/github-actions/.github/actions/telegram-notifications@main`
>
> The current repo will no longer receive updates.

## Overview

This GitHub action can be used in any repository to send notifications to a Telegram chat. The following pull request events will trigger a notification:

- Pull request approved
- Changes requested on a pull request
- Comment added to a pull request review
- Pull request opened (in draft or non-draft state)
- Pull request marked as ready for review

## Example

Create the workflow in the `.github/workflows` directory of a repository to use this action:

```yml
# telegram-notifications.yml

name: Telegram notifications

on:
pull_request:
types: [opened, ready_for_review]
pull_request_review:
types: [submitted]

jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Telegram Notify
uses: technance-foundation/github-action-telegram-notifications@main
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
```