XMPP (jabber) trigger

2 views
Skip to first unread message

Mauritz Stenek

unread,
Jun 8, 2023, 8:51:32 AM6/8/23
to gito...@googlegroups.com
Hi guys,

Does anyone know how to set up a trigger to notify an XMPP chat room?

Thanks!

Sitaram Chamarty

unread,
Jun 8, 2023, 9:26:47 AM6/8/23
to Mauritz Stenek, gito...@googlegroups.com
On Tue, Jun 06, 2023 at 12:21:49AM +0000, 'Mauritz Stenek' via gitolite wrote:
> Hi guys,
>
> Does anyone know how to set up a trigger to notify an XMPP chat room?

First of all, apologies for not being able to approve this
message for 2 days. (I only have to approve the first message
from a new user; after that it goes straight to the list)

To your question, I'm guessing you want to send a message when
someone pushes? You'll want to create a trigger; start here:
https://gitolite.com/gitolite/triggers.html#common-arguments

You'll most likely want a POST_GIT trigger, or perhaps an
ACCESS_2 trigger, depending on what info you want in the XMPP
message.

Mauritz Stenek

unread,
Jun 11, 2023, 11:09:19 PM6/11/23
to gito...@googlegroups.com

On 2023-06-08 at 07:26, Sitaram Chamarty <sita...@gmail.com>
wrote:

> On Tue, Jun 06, 2023 at 12:21:49AM +0000, 'Mauritz Stenek' via
> gitolite wrote:
>> Hi guys,
>>
>> Does anyone know how to set up a trigger to notify an XMPP chat
>> room?
>
> First of all, apologies for not being able to approve this
> message for 2 days. (I only have to approve the first message
> from a new user; after that it goes straight to the list)

No worries. You deserve some slack on account of this awesome
tool!

> To your question, I'm guessing you want to send a message when
> someone pushes? You'll want to create a trigger; start here:
> https://gitolite.com/gitolite/triggers.html#common-arguments
>
> You'll most likely want a POST_GIT trigger, or perhaps an
> ACCESS_2 trigger, depending on what info you want in the XMPP
> message.

I actually think I'm going to stick to an email trigger setup --
setting up the xmpp goes beyond my skill set; I thought it was
going to be simpler.

do you have a `sendmail` trigger around? I could use that one.

--
Mauritz Stenek <mst...@disroot.org>

Sitaram Chamarty

unread,
Jun 12, 2023, 5:32:52 AM6/12/23
to Mauritz Stenek, gito...@googlegroups.com
On Sun, Jun 11, 2023 at 09:00:13PM -0600, 'Mauritz Stenek' via gitolite wrote:
>
> On 2023-06-08 at 07:26, Sitaram Chamarty <sita...@gmail.com> wrote:
>
> > On Tue, Jun 06, 2023 at 12:21:49AM +0000, 'Mauritz Stenek' via gitolite
> > wrote:
> > > Hi guys,
> > >
> > > Does anyone know how to set up a trigger to notify an XMPP chat
> > > room?
> >
> > First of all, apologies for not being able to approve this
> > message for 2 days. (I only have to approve the first message
> > from a new user; after that it goes straight to the list)
>
> No worries. You deserve some slack on account of this awesome tool!

:) Thanks!

> > To your question, I'm guessing you want to send a message when
> > someone pushes? You'll want to create a trigger; start here:
> > https://gitolite.com/gitolite/triggers.html#common-arguments
> >
> > You'll most likely want a POST_GIT trigger, or perhaps an
> > ACCESS_2 trigger, depending on what info you want in the XMPP
> > message.
>
> I actually think I'm going to stick to an email trigger setup -- setting up
> the xmpp goes beyond my skill set; I thought it was going to be simpler.
>
> do you have a `sendmail` trigger around? I could use that one.

Sorry no, but I'm sure there are lots of them around. (Since I
use mutt, even for gmail, I have on occasion just run

my-cmd | mutt -F ~/.config/mutt/muttrc.gmail -s my-cmd-output my-o...@email.com

but lately I just use ntfy.sh if the _content_ of the message
is not sensitive
Reply all
Reply to author
Forward
0 new messages