Skip to content

rangerz/git-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Monitor

Monitor Git repositories for new commits, tags, and branches, and then trigger custom commands.

How it works

Use git fectch and parse its output for changes for new commits, branches, and tags. When detecting any changes, it will trigger all *.nofity scripts with some paramters, such as $title, $message, and $commit_range

How does it look

Teams: (Incoming Webhook):

git-monitor on Teams

OSX: (Terminal-notifier)

git-monitor on Mac OSX

Requirements

  • Git

Install

git clone https://github.com/rangerz/git-monitor.git ~/.git-monitor
cd ~/.git-monitor

Homebrew

brew install ...

Usage

  • Add repositories:
cd ~/.git-monitor/repos
git clone --mirror https://github.com/joelthelion/autojump.git
git clone --mirror git://github.com/pyromaniac/hoof.git

# Link folder
ln -s /YourProjectPath/ ~/.git-monitor/repos/
  • Monitor Git repos
git monitor # ~/.git-monitor/repos

git monitor ~/watched-repos

Uninstall

rm -rf ~/.git-monitor

HomeBrew

brew remove ...

TODO

  • Add/Remove/List git repositories
  • More *.nofity scripts, such as slack, message, email, ... etc
  • Check desktop nofity works
  • Support Windows

Credits

Inspired by sickill/git-dude

License

MIT

About

Monitor Git repositories for new comments, tags, and branches, and then trigger custom commands.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages