[CentOS-devel] Upcoming changes to git.centos.org are now in staging

Pierre-Yves Chibon

pingou at pingoured.fr
Fri Oct 26 09:34:10 UTC 2018


On Thu, Oct 25, 2018 at 10:20:45PM +0200, Fabian Arrotin wrote:
> On 25/10/18 19:08, Pat Riehecky wrote:
> > Looking at that API, I've got a few questions:
> >
> > Under "List projects", is there a way to search for projects with a
> > specific branch (ie, find projects with c7 branch)?
> > Under "List projects", is there a way to search for projects with any
> > commits/activity after a certain date range (so I can only check for
> > updates within the last few days)?
> >
> > Generically, will the scripts in
> > https://git.centos.org/summary/centos-git-common.git be ported over?
> > Our work flow is entirely dependent on : centos.git.repolist.py
> > into_srpm.sh  show_possible_srpms.sh
> >
> > Pat
> >
>
> So, myself I just got a quick look at the self-documented api
> (https://git.stg.centos.org/api/0/) but that doesn't seem possible, at
> least not through simple query

That's correct.

> You can still query for all the projects (/api/0/projects) and then
> parse json output for each project including date_created and
> date_modified (epoch time).

The date_modified field refers to the last time information/settings about the
project were changed, not the last time a commit was made

> Same for each project : /api/0/<namespace>/<repo>/git/branches
>
> But as pagure is also open , pretty sure that if you come with a PR
> against it to implement "missing" api features, they'll consider those ;-)
>
> https://pagure.io/pagure

Feel also free to open a ticket there if you cannot work on the PR yourself,
so the idea doesn't get lost :)


Thanks,
Pierre

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20181026/8bd7fa50/attachment-0002.sig>


More information about the CentOS-devel mailing list