Re: Tool for Github PR integration

2015-05-07 Thread Eric Charles
We could start with the mailbox project which is mirrored on 
https://github.com/apache/james-mailbox

Can you open a jira and describe there the process to follow?


On 04/28/2015 05:02 PM, Benoit Tellier wrote:

Hi,

We released a tool for helping integrating Github PRs into James code.

You will find a script in the attached tar archive ( 
github_pull_request_to_svn.sh ) that allows you to import github 
commits composing a PR as SVN commits, to allow us to easily merge 
Github PR into James sources. You have a README that explains how to 
use this tool.


I do not know where to put these sources as this can be used with any 
James project.


Regards,

Benoit


-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org


[jira] [Created] (MAILBOX-231) Provide a tool to better integrate Github PR in our workflow.

2015-05-07 Thread Tellier Benoit (JIRA)
Tellier Benoit created MAILBOX-231:
--

 Summary: Provide a tool to better integrate Github PR in our 
workflow.
 Key: MAILBOX-231
 URL: https://issues.apache.org/jira/browse/MAILBOX-231
 Project: James Mailbox
  Issue Type: Task
Reporter: Tellier Benoit


We want a set of scripts that extract and commit patchs from github PR.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



Re: Tool for Github PR integration

2015-05-07 Thread Benoit Tellier
I uploaded these tool on the Jira under MAILBOX-231 .

I also opened the pull request for mailbox 224

To apply it using the tool, simply run :

./github_pull_request_to_svn.sh james-mailbox 9

once your are done with the review on github.

On 05/07/15 11:48, Eric Charles wrote:
 We could start with the mailbox project which is mirrored on
 https://github.com/apache/james-mailbox
 Can you open a jira and describe there the process to follow?


 On 04/28/2015 05:02 PM, Benoit Tellier wrote:
 Hi,

 We released a tool for helping integrating Github PRs into James code.

 You will find a script in the attached tar archive (
 github_pull_request_to_svn.sh ) that allows you to import github
 commits composing a PR as SVN commits, to allow us to easily merge
 Github PR into James sources. You have a README that explains how to
 use this tool.

 I do not know where to put these sources as this can be used with any
 James project.

 Regards,

 Benoit


 -
 To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
 For additional commands, e-mail: server-dev-h...@james.apache.org



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[jira] [Updated] (MAILBOX-231) Provide a tool to better integrate Github PR in our workflow.

2015-05-07 Thread Tellier Benoit (JIRA)

 [ 
https://issues.apache.org/jira/browse/MAILBOX-231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tellier Benoit updated MAILBOX-231:
---
Attachment: github_integration.tar.gz

# Github integration tool

This set of scripts aims at making it easier to review and commit Github pull 
request on the Apache SVN.

You can make the review using Github, and discuss / update the pull request ( 
the discussions will be copied to the corresponding issues on Apache JIRA 
automatically ).

Once you are satisfied of the pull request, put these script at the root of the 
project you want to apply the pull request on.

For instance, with apache/james-mailbox project :

cd path/to/james-mailbox
cp path/to/github_pull_request_to_svn.sh path/to/jsonurl.py 
path/to/jsonarray.py .

Then run .sh with the project name and the Github pull request number :


sh github_pull_request_to_svn.sh jame-mailbox 1

You will be asked for your github credentials ( used to extend the number of 
requests made on the API ).

Informations about the commits will be retrieved from Github, and the changes 
will be committed in SVN by Git commit.

When successfully merged, the pull request will be closed on GitHub ( if you do 
not have the -n option ).

Note that if the PR is not mergeable, or any patch application fails, or any 
SVN commit fails, you will be notified, and none action would be taken ( if you 
do not have the -f option 
).

# Requirements

You need to have python2 installed.


 Provide a tool to better integrate Github PR in our workflow.
 -

 Key: MAILBOX-231
 URL: https://issues.apache.org/jira/browse/MAILBOX-231
 Project: James Mailbox
  Issue Type: Task
Reporter: Tellier Benoit
 Attachments: github_integration.tar.gz


 We want a set of scripts that extract and commit patchs from github PR.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org