Create, rename and delete repositories
Learn how to create, rename, and delete repositories using CBG
This guide provides instructions on how to create, rename, and delete repositories using the Codebase Governor (CBG). Follow these steps to efficiently manage your repositories within a capability.
Repository Creation
To create a new repository, add a repository configuration file within the appropriate capability folder. If the repository does not already exist in Flutter-Global, the Codebase Governor will automatically create it and apply all necessary configurations.
To create a new repository, follow these steps:
- Navigate to the
org-configrepository main page. - Open the
codebasesfolder. - Open your
capabilityfolder orcreate a new one. - Click the
Add file>Create new filebutton. - Enter your repository name in the
Name your file...field. The file name must follow the<NAME_OF_REPOSITORY>.ymlpattern. For example, for a repository namedvideo-broadcast, the filename would bevideo-broadcast.yml. - Add the repository configuration properties in the file contents textarea.
- Click on the
Commit changes...button. - Add a
Commit message. - Click on
Propose changesto open a Pull Request.
After your pull request is open, CBG will run and display a comment similar to the image.

Once the pull request is approved and merged, CBG will create the repository and apply any changes defined in the configuration.
Repository Renaming
To rename a repository, you can use git mv:
-
Clone the
org-configrepository:git clone git@github.com:Flutter-Global/org-config.git -
Create a new branch for the change. Replace
<name-of-branchwith your branch name.git checkout -b <name-of-branch> -
Navigate to the
capabilityfolder inside thecodebasesfolder. Replace<your-capability-name>with the capability your name.cd org-config/capability/<your-capability-name>` -
Rename the repository configuration file, replacing
<old-repository-config-file>and<new-repository-config-file>with the repository filenames, using the following command:git mv <old-repository-config-file> <new-repository-config-file> -
Add and commit the changes:
git add . git commit -m "renaming a repository" -
Push the changes:
git push - Navigate to the
org-configrepository - Open a PR based on the branch created
After your pull request is open, CBG will run and display a comment similar to the image below.

Once the pull request is approved and merged, CBG will rename the repository and apply any changes defined in the configuration.
Further reading
Repository Deletion
To delete a repository, remove the repository configuration file from the capability folder. The Codebase Governor will then remove the repository from the capability and archive it.
To delete a repository using the GitHub UI, follow these steps:
- Navigate to the
org-configrepository main page. - Open the
codebasesfolder. - Open your
capabilityfolder. - Open the repository configuration file by clicking on it.
- Click on the
...>Delete filebutton. - Click on the
Commit changes...button. - Add a
Commit message. - Click on
Propose changesto open a Pull Request.
After your pull request is open, CBG will run and display a comment similar to the image below.

Once the pull request is approved and merged, CBG will archive the repository for deletion.