{"thread":{"id":"17554","subject":"jabber notifications for git commits","startedAt":"2009-02-04T11:43:36Z","lastAt":"2009-02-04T15:27:51Z","messageCount":2,"participants":["Thomas Koch","Johannes Gilger"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"103115","messageId":"200902041243.36507.thomas@koch.ro","threadId":"17554","inReplyTo":null,"subject":"jabber notifications for git commits","fromName":"Thomas Koch","fromEmail":"thomas@koch.ro","sentAt":"2009-02-04T11:43:36Z","receivedAt":"2009-02-04T11:43:36Z","isPatch":false,"sender":{"key":"thomas@koch.ro","avatar":null},"body":"Is it possible to integrate jabber and git so that I get notified when\nnew commits are available on our central git repo host?\nI need to install some hook on the git server, of course.\n\nWe use gitosis.\n\nBest regards,\n-- \nThomas Koch, http://www.koch.ro\nYMC AG, http://www.ymc.ch\n"},{"id":"103149","messageId":"gmcc5n$1em$1@ger.gmane.org","threadId":"17554","inReplyTo":"200902041243.36507.thomas@koch.ro","subject":"Re: jabber notifications for git commits","fromName":"Johannes Gilger","fromEmail":"heipei@hackvalue.de","sentAt":"2009-02-04T15:27:51Z","receivedAt":"2009-02-04T15:27:51Z","isPatch":false,"sender":{"key":"heipei@hackvalue.de","avatar":"https://avatars.githubusercontent.com/u/6072?v=4"},"body":"On 2009-02-04, Thomas Koch <thomas@koch.ro> wrote:\n> Is it possible to integrate jabber and git so that I get notified when\n> new commits are available on our central git repo host?\n\nWell, the problem isn't really in the hooks but in how to connect to a \nJabber-server. For the few svn-repos I'm using (on my own server that \nis) I'm using xmpp4r (a Ruby-jabber implementation). svn triggers a \ncommit-hook which calls my ruby-script and supplies the jabber-contacts \nwith commit-message, changed files and so on.\n\nYou can find the ruby-script here: \nhttp://avalon.hoffentlich.net/~heipei/tmp/jabber_notification.rb and \nhave fun adapting it to your needs and making sure that xmpp4r is \ninstalled ;)\n\n> I need to install some hook on the git server, of course.\n\nIf you can't get xmpp4r onto the host that is the master for your \nproject you could always put a hook there that pushes new changes to \nanother host and calls xmpp4r there.\n\nGreetings,\nJojo\n\n-- \nJohannes Gilger <heipei@hackvalue.de>\nhttp://hackvalue.de/heipei/\nGPG-Key: 0x42F6DE81\nGPG-Fingerprint: BB49 F967 775E BB52 3A81  882C 58EE B178 42F6 DE81\n"}]}