Simple API to get list of repos and list of branches for each repo

Dominik Ruf dominikruf at gmail.com
Thu Apr 5 20:50:57 UTC 2018


*http://kallithea.readthedocs.io/en/default/api/api.html#get-changesets
<http://kallithea.readthedocs.io/en/default/api/api.html#get-changesets>*

Note that I'm/we are not really happy with the current API. (REST or
GraphQL would be better)
Somebody promised some while ago to implement a new GraphQL API, but
nothing happened since :-(

Marc Rejohn Castillano <marcrejohn.castillano at elasticbooks.com> schrieb am
Do., 5. Apr. 2018 um 22:36 Uhr:

> Happy to know that, do you have a sample or documentation of the API?
>
> Thank you so much.
>
> On Fri, Apr 6, 2018, 2:35 AM Dominik Ruf <dominikruf at gmail.com> wrote:
>
>> @Long Vu: I just pushed my repo to Bitbucket as well.
>> https://bitbucket.org/domruf/kallithea-branch-source-plugin
>>
>> Any suggestions or bug reports are very welcome.
>>
>> Dominik Ruf <dominikruf at gmail.com> schrieb am Do., 5. Apr. 2018 um
>> 07:40 Uhr:
>>
>>>
>>>
>>> On Wed, Apr 4, 2018, 17:49 Long Vu <long.vu at intelerad.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> With hgweb, it's extremely simple.
>>>>
>>>> Getting the list of all the repos is
>>>> https://www.mercurial-scm.org/repo?style=json
>>>>
>>>> Getting all the branches for 1 repo is
>>>> https://www.mercurial-scm.org/repo/hg/branches?style=json
>>>>
>>>> Is there something similar with Kallithea?
>>>>
>>> Yes, the API allows this kind of thing.
>>>
>>>>
>>>> Use case: using Jenkins JobDSL plugin to automatically create jobs for
>>>> all repos and all branches in each repo, basically emulating the
>>>> Organization Folder support for Github and Bitbucket in Jenkins, but
>>>> for Kallithea and hgweb.
>>>>
>>> I already wrote a Jenkins plugin for this. And I mentioned this on this
>>> list before and I'm pretty sure I mentioned it to you as well :-/
>>>
>>> https://kallithea.dominikruf.com/kallithea/kallithea-branch-source-plugin
>>>
>>>>
>>>>
>>>> --
>>>> Long Vu | Software Developer, Tools & Infrastructure | Intelerad |
>>>> +1-514-931-6222 ext. 7743 <+1%20514-931-6222>
>>>>
>>>> --
>>>>
>>>>
>>>> This email or any attachments may contain confidential or legally
>>>> privileged information intended for the sole use of the addressees. Any
>>>> use, redistribution, disclosure, or reproduction of this information,
>>>> except as intended, is prohibited. If you received this email in error,
>>>> please notify the sender and remove all copies of the message, including
>>>> any attachments.
>>>>
>>>>
>>>> _______________________________________________
>>>> kallithea-general mailing list
>>>> kallithea-general at sfconservancy.org
>>>> https://lists.sfconservancy.org/mailman/listinfo/kallithea-general
>>>>
>>> _______________________________________________
>> kallithea-general mailing list
>> kallithea-general at sfconservancy.org
>> https://lists.sfconservancy.org/mailman/listinfo/kallithea-general
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sfconservancy.org/pipermail/kallithea-general/attachments/20180405/0dc76e93/attachment-0001.html>


More information about the kallithea-general mailing list