Open nikhiljha opened 4 years ago
Should the approval part still be different for different repositories? Like accepting approval from any staffer for ocfweb, but requiring a root staffer's approval for puppet?
I don't think there is any global setting unfortunately. Additional notes:
ocf/etc
don't necessarily need approvalFWIW @kpengboy I don't think we can specify in the settings which group needs to approve its just "1 approver"
We could kind of hack around this by putting CODEOWNERS in all of the repos but that sounds both hacky and annoying to maintain.
I think we could write a script to do this automatically, github has a pretty good API...
I think the CODEOWNERS solution is how most orgs do it. Just commit one file with a pointer to the GitHub groups, so no maintenance is required past the original setup I think?
Oh yeah if we can just point to groups we should just do that then.
might also be worth to set up a template repo maybe? https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-template-repository
Permissions are apparently supposed to be setup so that...
ocf/staff
can push to anything exceptmaster
ocf/staff
can merge to master, but only with 1+ approving reviewsHowever, this is inconsistently applied across GitHub. Maybe there's a global setting somewhere that can apply it? Or we can make a script?