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/resou…
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
--
Ludovic Dubost
Founder and CEO
Blog:
http://blog.ludovic.org/
XWiki:
http://www.xwiki.com
Skype: ldubost GTalk: ldubost