The Repository Configuration page allows you to manage how Codegen interacts with your repositories. You can access this page by navigating to the /repos route in the Codegen app.
You can designate one repository as the “primary repository” by checking the “Set as primary repository” option. The primary repository is used as the default when Codegen is triggered without explicitly specifying a repository.When you set a repository as primary:
It becomes the default repository used before any SetActiveCodebase command is executed
Only one repository can be primary at a time
Setting a new primary repository will automatically unset any previously designated primary repository
The “Repository rules” section allows you to specify custom instructions that Codegen should follow when working with this specific repository. These rules are written in markdown format and can include:
Coding style guidelines
Project-specific conventions
Architectural patterns to follow
Testing requirements
Deployment considerations
Any other repository-specific instructions
These rules will be included in Codegen’s context when it’s working with the repository, helping it to better understand your project’s requirements and constraints.
To add or remove repositories that Codegen can access, click the “Configure GitHub” button in the top-right corner of the repository list page. This will take you to GitHub where you can manage which repositories Codegen has access to.