Giter Site home page Giter Site logo

tkachenko0 / github-commit-tracker Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 182 KB

GitHub Commit Tracker is a Telegram bot that keeps you informed about the latest commits in your favorite repositories. Whether you're a developer, project manager, or tech enthusiast, this bot ensures you never miss a beat in your chosen GitHub project.

Home Page: https://t.me/GitHubCommitTrackerBot

License: MIT License

Python 100.00%
commit telegram-bot

github-commit-tracker's Introduction

GitHub Commit Tracker

GitHub Python Version Telegram Bot

GitHub Commit Tracker logo

freepik.com

GitHub Commit Tracker (@GitHubCommitTrackerBot) is a Telegram bot that keeps you informed about the latest commits in your favorite repositories. Whether you're a developer, project manager, or tech enthusiast, this bot ensures you never miss a beat in your chosen GitHub project.

๐Ÿš€ Stay in the Loop with Real-time GitHub Commits! ๐Ÿš€

Installation

  1. Clone the repository:
git clone https://github.com/tkachenko0/GitHub-Commit-Tracker
  1. Create a virtal environment:
python3 -m venv venv
  1. Activate the virtual environment:
source venv/bin/activate
  1. Install the dependencies:
pip3 install -r requirements.txt
  1. Configure the properties in the .properties file:
  • TELEGRAM_TOKEN from the BotFather
  • GITHUB_ACCESS_TOKEN from GitHub
  • DELAY_IN_SECONDS is the time interval between each check expressed in seconds

At the end, the .properties file should look something like this:

ACCESS_TOKEN=ghp_GGutsdfsfssadssaxcGxc8vojZUZ3qFFwN
DELAY_IN_SECONDS=3600
TELEGRAM_TOKEN=6313830165:AAEN-z0hJV8yoIiZdwwCnEuTKwzkzkORKbho

โญ๏ธ Usage

Run the bot:

python3 bot.py

Th the first step the bot will ask you the GitHub username of the user you want to track.

Then the bot will ask you the repository name.

At the end the bot will track the commits of the user in the repository and notify ech user when a new commit is made.

Implementation

The organization of the project is as follows:

.
โ””โ”€โ”€ db.json                      # Dataset of the chat ids and the repositories to track
โ””โ”€โ”€ db.py                        # For the management of the dataset
โ””โ”€โ”€ .properties.py               # For the storage of the private configuration properties
โ””โ”€โ”€ configs.py                   # For the management of the private configuration properties
โ””โ”€โ”€ requirments.txt              # pip dependencies
โ””โ”€โ”€ tracker.py                   # For the retrieval of the commits information
โ””โ”€โ”€ bot.py                       # Bot implementation

๐Ÿ“œ License

This project is licensed under the MIT License.

github-commit-tracker's People

Contributors

tkachenko0 avatar

Stargazers

ฤฐzzet Emre Demir avatar Oleg Moshkov avatar Federico Meloni avatar

Watchers

 avatar

Forkers

thuydx55

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.