-
Save
checkCommitsNotif.sh
in a file, wherever you want -
Save
checkAllProjects.sh
in another file, in the same directory -
Edit file (configuration) :
- Replace
USER
(line 4) with your user (echo $USER
) - Replace
gitlab_token
with your GitLab token (see here) - Replace
repo name
with something like "google Python", for example.
- Replace
-
Now, open a terminal
-
Install theses packages :
sudo apt install libnotify-bin
sudo apt install jq
- Run this command
crontab -e
At the end of the file, add :
* * * * * /bin/bash /location/of/checkAllProjects.sh
Note : That means every minute, see crontab.guru
You're done ! 🎉 Now, you'll get a notification when there's a new commit. Clicking on the notification will open the URL on your browser.