The "Prevent creating new branches by git push" option is useful and should be set on new repositories, but there is no API that the repository creation tool could use to set it. I assume that the defaults for the various hooks are stored in some server configuration somewhere. Could this default be flipped so that newly created repositories have that hook configured?
Perhaps when pagure grows an API for setting hooks, and the fedscm-admin tool grows code to talk to it.
Repositories continue to be created without this useful feature in place, and packagers who want it have to turn it on manually.
It occurs to me that the default would somehow have to be different for forks, and I simply don't know if pagure even has a way to configure the default hooks at all, much less if it can do it differently for forks.
So I suspect that the only real way to do this properly is to wait until pagure has an API to set this hook, and then have the SCM admin tool ticket that hook. But I guess I'll let @pingou or someone who knows pagure internals chime in instead of just closing this.
There are two items for this:
a) write a script to toggle all the existing projects
b) write an API endpoint to toggle git hooks for a project
The first one could be run to toggle this once we have the later in place so new projects could be adjusted by the admins creating them.
Metadata Update from @pingou:
- Issue tagged with: src.fp.o
Metadata Update from @bowlofeggs:
- Issue priority set to: Waiting on Assignee (was: Needs Review)
to comment on this ticket.