Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Nov 2014 11:56:53 -0800
From:      Alfred Perlstein <alfred@freebsd.org>
To:        freebsd-git@freebsd.org
Subject:   Re: First step towards GitHub integration
Message-ID:  <54690185.30301@freebsd.org>
In-Reply-To: <9A004225-B20E-4795-971A-B363F02B78BC@FreeBSD.org>
References:  <9A004225-B20E-4795-971A-B363F02B78BC@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 11/16/14, 10:08 AM, Bartłomiej Rutkowski wrote:
> Hi everyone,
>
> Following the recent discussion on the developers mailing list about opening to wider audience by increasing our presence on GitHub (and perhaps, in future, switching to Git) I volunteered to take care of the very first step, that is - stop closing pull requests on GitHub without any action on them.
>
> My first, rough, idea is to create a GitHub hook that would act on pull requests aganist our repositories. Such hook would call an application, written by me (some sort of REST-ish Python based application, small thing) hosted on our infrastructure, that would get the pull request data in JSON from that hook call, validate it, and after proper transformation (not sure yet how much, if any, will be required) send it to our Bugzilla via XMLRPC interface.
>
> Once such PR is successfuly created, it would then send back a link to that PR and some additional information (encouraging the original sender to create his Bugzilla account, reach out to us on mailing lists, IRC and so on) as a comment to the original pull request, closing it at the same time.
>
> So, that's the idea for the very first step, very limited, one way only, no bells&whistles, but the idea behind is to do one thing and one thing only, yet to do it well. Comments welcome! :)
>
> Kind regards,
> Bartek Rutkowski

This is awesome!! Please proceed, you can hit me up on #efnet as nick 
"bright" if you want to discuss. Also this might be helpful starting 
point as it has some code to talk to github in it.

https://github.com/splbio/github2freebsd/tree/master/app

-Alfred



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54690185.30301>