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

[Idea] Changing a package's access rights: Add/remove users/groups in Pagure #44

Open farchord opened 10 months ago

farchord commented 10 months ago

I don't know if this is doable with the pagure API. I'm working through close to 100 KF6 packages right now and it'S always a pain to have to go package-by-package to add the kde-sig group.

Is there a way for the script to simply add it through the api? Something like:

fbrnch pagure-access add kf6-* kde-sig admin

Conan-Kudo commented 10 months ago

This is possible with the Pagure API. @bmwiedemann's automated openSUSE package export from OBS to code.opensuse.org (a Pagure instance) does this: https://github.com/bmwiedemann/openSUSE/blob/master/scripts/pagure-modify-acls

bmwiedemann commented 10 months ago

Also check out the nice API docs: https://pagure.io/api/0/#projects-tab

juhp commented 10 months ago

Seems reasonable, thanks for the suggestion