tonyb | prior to opendev the "best" way to get a list of all the OpenStack projects was something like: `ssh review.openstack.org gerrit ls-projects` That will still work but I'm wondring if there is an https API that will give me the same results. Making some thing up `curl https://opendev.org/repositories?org=openstack` ? | 00:21 |
---|---|---|
fungi | tonyb: i think gitea has a rest api, maybe see if they have docs? but also you can query the projects endpoint of the gerrit rest api | 01:07 |
tonyb | fungi: Thanks. I'll check both. | 01:08 |
fungi | tonyb: https://review.opendev.org/Documentation/rest-api-projects.html you can filter by prefix or regex | 01:09 |
fungi | keep in mind that the gerrit rest api responses are prepended with a xss buster sequence, so you need to trim off the first 4 bytes to parse as proper json | 01:10 |
tonyb | fungi: "This is the same as using the ls-projects command over SSH " Aweome! | 01:12 |
tonyb | fungi: reasonably easy to deal with in pythn or bash :) | 01:12 |
fungi | oh, actually it looks like the prepended xss buster may be omitted when i use curl | 01:12 |
fungi | or maybe not | 01:13 |
fungi | anyway, this works on the cli: | 01:13 |
fungi | curl 'https://review.opendev.org/projects/?p=openstack%2F' | sed "/^)\]}'$/d" | 01:19 |
fungi | slight leaning toothpick syndrome, but the result parses as proper json | 01:19 |
tonyb | fungi: I did curel ... | cut -zb6- | jq . Mostly because I didn't think of sed | 01:23 |
fungi | tonyb: oh neat. i started with cut before i realized the prepend included a newline, and i didn't remember the -z option | 01:36 |
fungi | but hey, at least neither of us resorted to awk ;) | 01:36 |
tonyb | \o/ | 01:37 |
*** ysandeep is now known as ysandeep|afk | 07:49 | |
*** ysandeep|afk is now known as ysandeep | 09:43 | |
*** jpodivin_ is now known as jpodivin | 11:01 | |
*** dviroel_ is now known as dviroel | 11:43 | |
*** ysandeep is now known as ysandeep|afk | 12:13 | |
opendevreview | Merged openstack/ci-log-processing master: Improve performance.json fields https://review.opendev.org/c/openstack/ci-log-processing/+/848218 | 12:58 |
*** ysandeep|afk is now known as ysandeep | 13:30 | |
*** dasm|off is now known as dasm | 13:51 | |
clarkb | the gitea api requires auth iirc and we don't give out accounts there | 14:38 |
clarkb | the gerrit api is where I'd look which is what you found | 14:38 |
iurygregory | Hey infra team o/ I'm trying to figure out the procedure to close some branches in ironic projects (I know we need to abandon all open patches, after this I just need to send an email to openstack-discuss asking?) | 14:43 |
*** ysandeep is now known as ysandeep|dinner | 15:04 | |
*** dviroel is now known as dviroel|lunch | 15:08 | |
clarkb | iurygregory: the openstack release team has that power delegated to them via the openstack meta acl config in gerrit for openstack projects. But ya abandoning open changes is also required | 15:10 |
clarkb | in theory this can be delegated to any group as well. We've just got an openstack wide set of rules for the release team to manage branches already | 15:10 |
clarkb | (also technically closing the open changes is necessary so merging is also a valid solution instead of abandoning) | 15:10 |
iurygregory | clarkb, oh ack o/ tks! will talk with the release team =) | 15:14 |
*** ysandeep|dinner is now known as ysandeep|out | 15:45 | |
*** dviroel|lunch is now known as dviroel | 16:26 | |
*** dviroel is now known as dviroel|afk | 20:17 | |
*** melwitt_ is now known as melwitt | 21:10 | |
*** dasm is now known as dasm|off | 21:25 | |
opendevreview | Slawek Kaplonski proposed openstack/project-config master: Add Grafana dashboard for the Tobiko CI https://review.opendev.org/c/openstack/project-config/+/850953 | 21:57 |
*** rlandy is now known as rlandy|out | 23:57 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!