2i2c-org / infrastructure

Infrastructure for configuring and deploying our community JupyterHubs.
https://infrastructure.2i2c.org
BSD 3-Clause "New" or "Revised" License
103 stars 63 forks source link

[Spike] Permitting external collaborators to merge ONLY into the subfolder that contains their cluster's spec #4468

Open sgibson91 opened 2 months ago

sgibson91 commented 2 months ago

Part of the vision of 2i2c (Shared Responsibility Model) is that communities own and have agency over the infrastructure we help maintain. A blocker to this has been merge rights on the repository. There isn't a clean way to give hub admins merge rights to only the folder that contains their cluster/hub's config.

I uncovered some information that may reveal a path forward here involving a GitHub App, a CODEOWNERS file, and a YAML config file in the .github folder. We should spend some time investigating what it would mean to deploy this, what permissions would be required by the apps and the external folk we would like to invite, and whether this approach suits our needs.

GitHub Apps:

Small config example:

yuvipanda commented 2 months ago

ty for opening this, @sgibson91!