Learn more about these different git repos.
Other Git URLs
Requirements:
Some issues we've run into with other integrations:
An API documentation page for Pagure with a table of contents, dear god
We used to have this, I swear, it somehow got lost in a UI change and at this point the entire page needs a refresh.
@fbo Are any of these things stuff you're working on at the moment for the Zuul CI integration?
@ngompa, yes partially:
So https://pagure.io/pagure/pull-request/4698 will help third party CI integration when merged. I've nothing else in progress atm.
done: https://pagure.io/pagure/c/1f2b600f5bbe3eeefe421c6730efd1b94704898e?branch=master
@ddevault You can check out the updated API documentation on the staging instance here: https://stg.pagure.io/api/
Nice! That page is much improved.
:thumbsup:
@ddevault With the APIs available as described in the documentation in staging, do you see any remaining gaps? The OAuth(ish) flow thing is the only thing that stands out to me.
Thoughts:
Cloning the repo to inspect its git data isn't an approach I'm interested in. It's orders of magnitude more expensive than just asking what the contents of a specific file are at a specific commit or ref.
You should be able to fetch a file by using https://<server>/<path/to/project>/raw/<commitish>/f/<path/to/file>
https://<server>/<path/to/project>/raw/<commitish>/f/<path/to/file>
For example: https://pagure.io/pagure/raw/master/f/.cico.pipeline
How do I list the contents of a directory? This is a hack, it should be part of the API.
Metadata Update from @ngompa: - Issue set to the milestone: Coming 3 months
@ddevault We now have an API for listing directory contents without requiring a git clone.
You can get a JSON response with a list of contents of a directory by using https://<server>/api/0/<path/to/project>/tree/<commitish>[/f/<path/to/folder>/]
https://<server>/api/0/<path/to/project>/tree/<commitish>[/f/<path/to/folder>/]
For example: https://pagure.io/api/0/pagure/tree/master
Nice. Should definitely be possible to use that to write a dispatch.sr.ht patch. I'm on #sr.ht on freenode if anyone wants some pointers on where to get started with such a patch.
Metadata Update from @wombelix: - Issue set to the milestone: 5.13 (was: Coming 3 months)
Login to comment on this ticket.