Re: git.postgresql.org commit hooks?

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Craig Ringer <craig(at)2ndquadrant(dot)com>
Cc: PostgreSQL WWW <pgsql-www(at)postgresql(dot)org>
Subject: Re: git.postgresql.org commit hooks?
Date: 2015-03-08 15:32:22
Message-ID: CABUevEz9xPWTkOue8pO342dOEOcocw5qgtfnZhwPnGWdghJ8pg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

On Fri, Mar 6, 2015 at 5:50 AM, Craig Ringer <craig(at)2ndquadrant(dot)com> wrote:

> Hi all
>
> Is it permissible to have on-commit / after-commit hooks added to
> git.postgresql.org repositories?
>
> I'd like to mirror 2ndQuadrant_bdr.git to GitHub if possible. I'm aware
> that I can use a cron job, but I'd rather not poll git.postgresql.org if
> there's a better way.
>
>
As a general rule, no - we don't want to end up having to maintain and
review the result of something like that, and the system is simply not set
up to compartmentalize those things enough.

However, there is a generic hook that's there and can be used. This is the
hook we use to send commit messages. It also has functionality to "ping" a
http url whenever it receives a push. This is what we use to trigger an
update of the repository browser on redmine.postgresql.org for example.

Perhaps this ping url could be used to trigger the mirror job for you?

--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/

In response to

Browse pgsql-www by date

  From Date Subject
Next Message Alvaro Herrera 2015-03-09 20:46:28 Re: tracking commit timestamps
Previous Message Nikhil Sontakke 2015-03-07 13:37:20 Re: [pgsql-www] What do we need for new PUGs?