Giter Club home page Giter Club logo

gitdinger's Introduction

GitDinger

GitDinger monitors your local copies of git repositories and notifies you of changes by playing a selected sound file and saying out loud who did commit what.

The autofetch configuration causes gitdinger to fetch the repositories and thus monitor even remote branches easily. Just specify for example origin/master and set autofetch to true.

Requirements

Configuration

{
	"repos": [
		{
			"path": "/home/test/testgitrepo",
			"branch": "origin/master",
			"autofetch": true,
			"soundfile": "lm_coin.wav",
			"voice": "Zarvox"
		}
	],
	"period": 30
}
  • repos - A list of all repos that should be monitored
  • path - Path to the git repository
  • branch - Which branch to track (master, origin/master, ...)
  • autofetch - Run fetch --all every time a check is to be performed
  • soundfile - Path to a soundfile to play when changes are registered
  • voice - A voice to use (get all usable by running say -v? [Only supported on OSX]
  • period - How often to check (seconds)

Installation / Running

  • Clone this repository
  • Edit the sample configuration file
  • Run go run gitdinger.go
  • Profit!

Optionally you can specify a different config file, by usigng the -config flag.

Use -h to get a usage description.

Sample output

2014/05/27 19:21:28 Setting up listener for repo '/home/test/testgitrepo':master to check every 1 seconds.
2014/05/27 19:21:29 Checking testgitrepo:master
2014/05/27 19:21:29  Setting initial state on testgitrepo to 18d9b82
2014/05/27 19:21:30 Checking testgitrepo:master
2014/05/27 19:21:31 Checking testgitrepo:master
2014/05/27 19:21:32 Checking testgitrepo:master
2014/05/27 19:21:32  Dinging 3 times.
2014/05/27 19:21:36  Saying: "Jan Brucek's commit Commit 26524"
2014/05/27 19:21:40  Saying: "Jan Brucek's commit Commit 21404"
2014/05/27 19:21:45  Saying: "Jan Brucek's commit Commit 28014"
2014/05/27 19:21:45 Checking testgitrepo:master
2014/05/27 19:21:45 Checking testgitrepo:master
2014/05/27 19:21:46 Checking testgitrepo:master
2014/05/27 19:21:47 Checking testgitrepo:master

gitdinger's People

Contributors

honzab avatar mariosnikolaou avatar

Stargazers

Hady Mahmoud avatar lars avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

mariosnikolaou

gitdinger's Issues

Make voice configurable

With say you can configure the voice by adding -v "VoiceName". Make that a configuration option.

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.