juhp / fbrnch

Tool to update fedora packages branches
https://hackage.haskell.org/package/fbrnch
GNU General Public License v2.0
23 stars 3 forks source link

RFE: Clone packages of a group #46

Closed Enchufa2 closed 21 hours ago

Enchufa2 commented 3 months ago

I would like to be able to clone all packages of a group instead of a user.

juhp commented 3 months ago

Aha nice idea, that shouldn't too hard

juhp commented 3 months ago

Seems something like GET /api/0/group/some_group_name?projects=1&acl=commit should work looking at https://pagure.io/api/0/#groups-tab

juhp commented 3 months ago

I added the API to pagure-hs in https://github.com/juhp/pagure-hs/commit/46f850cd2004e68308f4f09062dd0ae5eba92046

Enchufa2 commented 3 months ago

Seems something like GET /api/0/group/some_group_name?projects=1&acl=commit should work

Looking at https://pagure.io/api/0/#groups-tab

Yes, I've been doing this manually and it works. I intended to put this here but then slipped my mind, apologies.

juhp commented 3 months ago

Next step I released pagure-cli-0.2.2 which now has a group command to list packages under a group.

I will build it for Fedora, but hopefully that helps a bit.

juhp commented 21 hours ago

This included in just released fbrnch-1.5: hope you can try it out soon

Enchufa2 commented 20 hours ago

Thanks!