git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: jabber notifications for git commits

From
Johannes Gilger <heipei@hackvalue.de>
Date
Feb 4, 2009, 15:27 UTC
Message-ID
<gmcc5n$1em$1@ger.gmane.org>
In-Reply-To
<200902041243.36507.thomas@koch.ro>
On 2009-02-04, Thomas Koch <thomas@koch.ro> wrote:
> Is it possible to integrate jabber and git so that I get notified when
> new commits are available on our central git repo host?

Well, the problem isn't really in the hooks but in how to connect to a Jabber-server. For the few svn-repos I'm using (on my own server that is) I'm using xmpp4r (a Ruby-jabber implementation). svn triggers a commit-hook which calls my ruby-script and supplies the jabber-contacts with commit-message, changed files and so on.

You can find the ruby-script here: http://avalon.hoffentlich.net/~heipei/tmp/jabber_notification.rb and have fun adapting it to your needs and making sure that xmpp4r is installed ;)

> I need to install some hook on the git server, of course.

If you can't get xmpp4r onto the host that is the master for your project you could always put a hook there that pushes new changes to another host and calls xmpp4r there.

Greetings, Jojo

-- 
Johannes Gilger <heipei@hackvalue.de>
http://hackvalue.de/heipei/
GPG-Key: 0x42F6DE81
GPG-Fingerprint: BB49 F967 775E BB52 3A81  882C 58EE B178 42F6 DE81
Previous: Thomas Koch
Message 2 of 2 in “jabber notifications for git commits”
  1. Thomas KochFeb 4, 2009
  2. Johannes GilgerFeb 4, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.