From: Johannes Gilger <heipei@hackvalue.de>
To: git@vger.kernel.org
Subject: Re: jabber notifications for git commits
Date: Wed, 4 Feb 2009 15:27:51 +0000 (UTC) [thread overview]
Message-ID: <gmcc5n$1em$1@ger.gmane.org> (raw)
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
prev parent reply other threads:[~2009-02-04 15:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-04 11:43 jabber notifications for git commits Thomas Koch
2009-02-04 15:27 ` Johannes Gilger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='gmcc5n$1em$1@ger.gmane.org' \
--to=heipei@hackvalue.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).