On Dec 22, 2011, at 7:29 PM, Ludovic Dubost wrote:

> I've made progress and I believe it's now testable. I've been able to
> commit updates as well as update code from GitHub.
> As a bonus I've added the possibility to commit a pom which allows to build
> the module using maven, and also allowed separate credentials by XWiki user
> (which was a common request for the SVNApp to be able to share a
> configuration on the same wiki).
> 
> I've published the code
> http://extensions.xwiki.org/xwiki/bin/view/Extension/GitHubApp
> 
> Would it be possible to create me a repository in xwiki-contrib for the
> application so I can move it to contrib.

The repository has been created for you at
https://github.com/xwiki-contrib/GitHub-Application

Enjoy!
-Vincent

> Feedback welcome
> 
> Ludovic
> 
> 2011/12/22 Ludovic Dubost <[email protected]>
> 
>> 
>> Hi devs,
>> 
>> As we have moved to GitHub, I've started coding an equivalent of the
>> SVNApp (
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/SVN+Application) for
>> GitHub, which should ease up commiting pages from XWiki to GitHub, and
>> because the GitHub SVN bridge is unfortunately not compatible with SVNKit.
>> 
>> The bad news is that it's not a GitApp which seems very difficult to do as
>> it relies on a local clone of the repository which is quite overkill when
>> in an XWiki.
>> The good news is that thanks to the GitHub API and a java wrapper from
>> Eclipse, it seems fully possible to have the same functionnality as the
>> SVNApp.
>> 
>> I've made some good progress, as I've been able to check a repository
>> against the Wiki AND I've been able to commit non existant files in an
>> existing repository.
>> The life proof is the commit of the GitHubApp itself which was done with
>> GitHubApp:
>> 
>> 
>> https://github.com/ldubost/application-githubapp/tree/master/src/main/resources
>> 
>> It's still a prototype as there is a lot of work left. For now every file
>> is commited separately and I've not yet tested updating and other
>> complexities, especially as the GitHub api is not that easy to work with
>> (many times I had no errors but my updates were not showing up.
>> 
>> Ludovic

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to