pkgctl command to fork packaging repos
Now that we have MRs readily availiable it would be cool to have this workflow nicely integrated into pkgctl.
archlinux/packaging/packages/filesystem#6 (comment 144859) got me thinking what an ideal UX for the workflow could be:
$ pkgctl repo clone foo
// change packaging sources
$ pkgctl build --install-host
// stage & commit changes
$ pkgctl repo fork
// git push
// create mr
While the other features (protocol autodetection & host installation) are being worked on, I think having something like pkgctl repo fork
which forks the repo into the private namespace of the person owning the token would be pretty good. I think it would also make sense to only carry over the main
branch to the fork.
This should be implementable with the Projects API.
We should therefore consider whether this is something we want to have implemented in pkgctl
, a possible argument against would be that we already have pkgctl repo web
and that only is a few clicks from forking the project ... As I expect the implementation not to be complicated I think this is still viable
TODO:
- how do the other commands (i.e.
clone
andconfigure
) need to adapt for this change?