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

  1. Open the SourceCraft home page.
  2. On the Home tab, under Your craftspace, navigate to Repositories.
  3. Select a repository.
  4. Under Repository settings on the repository page, go to Configurations.

Setting up a new configuration

  1. Open the SourceCraft home page.

  2. On the Home tab, under Your craftspace, navigate to Repositories.

  3. Select a repository.

  4. Under Repository settings on the repository page, go to Configurations.

  5. On the card of the configuration you want to set up, click and select a method:

    • Blank configuration
    • Set up using AI
  6. Edit the code yourself or using AI and save the changes:

    1. In the top-right corner, click Commit changes.

    2. 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 proposal or Just save.
    3. Confirm your changes.

Changing the configuration

  1. Open the SourceCraft home page.

  2. On the Home tab, under Your craftspace, navigate to Repositories.

  3. Select a repository.

  4. Under Repository settings on the repository page, go to Configurations.

  5. On the card of the configuration you want to edit, click and select a method:

    • Edit manually
    • Fix using AI
  6. Edit the code yourself or using AI and save the changes:

    1. In the top-right corner, click Commit changes.

    2. 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 proposal or Just save.
    3. Confirm your changes.

See also