Skip to content

wesley587/Pull-Request-Monitor-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pull Request Monitor Bot

Bot that monitors Pull requests in the specified repository, and notifies via Telegram using github workflows

Setup

Creating a Telegram Bot

To learn how to create a telegram Bot access this link

photo_2021-03-27_00-11-48

After the creation of a Telegram Bot, you must run get_chat_id.py with your API token that the bot father generated

photo_2021-03-26_23-59-18

Create Github Secrets

To learn how to create the needed secrets, click here, make sure there are no blanks spaces

it is needed to create two secrets keys:

  • Create TELEGRAM_TOKEN (the field value must receive the token with quotation marks)
  • Create CHAT_ID

photo_2021-03-27_00-45-10

Usage

Add bot in your repository

The final step is to add these files to your repository:

  • monitor_bot.yml
  • send_message.py

I recommend using the copy and paste method

Path File Pull-Request-Monitor-Bot/.github/workflows/monitor_bot.yml, copy all code and paste in your repository with the similar path

photo_2021-03-27_01-59-07

Copy the content of the Pull-Request-Monitor-Bot\send_notice.py and create a file with the same name (send_notice.py) on the repository's root. If you need to change the path or file name, you need a change in your workflow file.

photo_2021-03-27_02-26-47

Now you have the bot monitoring your pull requests.

photo_2021-03-28_14-24-13

To learn more about Git Actions, access this link

To learn more about Git Actions, access this link.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages