From owner-freebsd-git@FreeBSD.ORG Sun Nov 16 19:56:53 2014 Return-Path: Delivered-To: freebsd-git@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CAB4DA9B for ; Sun, 16 Nov 2014 19:56:53 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id B877171 for ; Sun, 16 Nov 2014 19:56:53 +0000 (UTC) Received: from AlfredMacbookAir.local (c-76-21-10-192.hsd1.ca.comcast.net [76.21.10.192]) by elvis.mu.org (Postfix) with ESMTPSA id 7C905341F84E for ; Sun, 16 Nov 2014 11:56:53 -0800 (PST) Message-ID: <54690185.30301@freebsd.org> Date: Sun, 16 Nov 2014 11:56:53 -0800 From: Alfred Perlstein Organization: FreeBSD User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-git@freebsd.org Subject: Re: First step towards GitHub integration References: <9A004225-B20E-4795-971A-B363F02B78BC@FreeBSD.org> In-Reply-To: <9A004225-B20E-4795-971A-B363F02B78BC@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-git@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion of git use in the FreeBSD project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Nov 2014 19:56:53 -0000 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