Setting up repository configurations as code
In a SourceCraft repository, you can set up certain configurations as code, namely:
You can set up a configuration and view the status on a separate page in the repository settings.
Viewing configurations
- Open the SourceCraft home page.
- On the
Home tab, under Your craftspace, navigate to Repositories. - Select a repository.
- Under
Repository settings on the repository page, go to Configurations.
Setting up a new configuration
-
Open the SourceCraft home page.
-
On the
Home tab, under Your craftspace, navigate to Repositories. -
Select a repository.
-
Under
Repository settings on the repository page, go to Configurations. -
On the card of the configuration you want to set up, click
and select a method: Blank configuration Set up using AI
-
Edit the code yourself or using AI and save the changes:
-
In the top-right corner, click Commit changes.
-
In the window that opens, configure the procedure for changes:
- In the Commit message field, give a comment that will describe the changes you make.
- Under Commit branch, select the branch you want to change. Create a new branch as needed.
- Under After commit action, select an action to take after saving changes:
Save and create a new change proposalorJust save.
-
Confirm your changes.
-
Changing the configuration
-
Open the SourceCraft home page.
-
On the
Home tab, under Your craftspace, navigate to Repositories. -
Select a repository.
-
Under
Repository settings on the repository page, go to Configurations. -
On the card of the configuration you want to edit, click
and select a method: Edit manually Fix using AI
-
Edit the code yourself or using AI and save the changes:
-
In the top-right corner, click Commit changes.
-
In the window that opens, configure the procedure for changes:
- In the Commit message field, give a comment that will describe the changes you make.
- Under Commit branch, select the branch you want to change. Create a new branch as needed.
- Under After commit action, select an action to take after saving changes:
Save and create a new change proposalorJust save.
-
Confirm your changes.
-