Open samuelallan72 opened 3 weeks ago
Any comments, thoughts, feedback appreciated. :) The above is simply a suggested improvement based on my recent experiences and pain points.
Another motivation for this that I discovered today: it makes it verbose to manage files across multiple branches. For example for snap-tempest we maintain multiple stable branches ( https://github.com/canonical/snap-tempest/branches/active ), and we want the same codeowners and workflows on each branch. Currently this means a separate terraform config for the repo for each branch, duplicating repo name, description, etc.
EDIT: Although some things, like branch protection rules, we actually do want to be per-branch. :thinking:
Terraform is great for managing the repositories and repository metadata (we're using it effectively for maintaining the repository settings, branch protection, collaborator rules, repository description, etc.).
From my recent experience it's really awkward currently for managing the centrally managed files (CODEOWNERS, and workflow yaml files currently);
I propose we replace the terraform that manages the centrally managed files with a script and workflow that does something like this when a PR is opened here:
We'd want something to help us avoid merging PRs that are from feature branches, and also to avoid merging outdated PRs to target repositories.