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

Fri Oct 26 13:06:58 UTC 2018
Pat Riehecky <riehecky at fnal.gov>


On 10/26/2018 04:34 AM, Pierre-Yves Chibon wrote:
> 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
>
>

I've got them open:

https://pagure.io/pagure/issue/3386
https://pagure.io/pagure/issue/3956

-- 
Pat Riehecky

Fermi National Accelerator Laboratory
www.fnal.gov
www.scientificlinux.org