Done. I've published the code to xwiki-contrib.
I've also added the possibility to work with a fully empty repository and
supporting a subpath before the src/main/resources (this part is hardcoded
as I did not see the need to allow to configure it).
The only thing needed is to have created the repository using the GitHub
web UI.
Ludovic
2011/12/26 Vincent Massol <vincent(a)massol.net>
On Dec 26, 2011, at 10:16 AM, Sergiu Dumitriu wrote:
On 12/24/2011 08:06 AM, Vincent Massol wrote:
>
> 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
All the other repositories are named in lowercase, so github-application
would be
a better name for the repository.
Indeed my bad, I have no idea why I did this… :)
Ludovic please use:
https://github.com/xwiki-contrib/application-github
Thanks
-Vincent
> Enjoy!
> -Vincent
>
>> Feedback welcome
>>
>> Ludovic
>>
>> 2011/12/22 Ludovic Dubost<ludovic(a)xwiki.com>
>>
>>>
>>> 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
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs