Tool to monitor uncommitted changes or unfinished work in repo to keep it always tidy.
- Install packages
pip instal -r requirements.txt- Set up the telegram bot
- Generate a token https://t.me/BotFather (
TELEGRAM_TOKEN) - Add this bot to a chat you want and open
https://api.telegram.org/bot/getUpdates,
where you can find chat id (
TELEGRAM_CHAT_ID) - Put
TELEGRAM_TOKENandTELEGRAM_CHAT_IDnumbers to.envfile
- Generate a token https://t.me/BotFather (
- List repositories and write location in
.envfile
LOCATION_NAME = LocalMacBook
REPOS_TO_MONITOR = PathToRepo1, PathToRepo2
- Customize your cron file (
cron.file). Example:
# path to the Python:
PY_ENV = /home/username/py38/bin/python3.8
# Path to the monitor repo:
MONITOR_REPO = /home/username/github/monitor-git-changes
# 9,13,17 - means running 3 times at 9, 13, 17 o'clock
0 9,13,17 * * * cd $MONITOR_REPO && $PY_ENV main.py >> ~/log_monitor 2>&1- Copy cron file and past to
crontab -e - Enjoy!