---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.0
alternate:
  - https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/operations/configuration-edit.md
  - https://vibe.sourcecraft.dev/portal/docs/ru/sourcecraft/operations/configuration-edit.md
  - href: https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/operations/configuration-edit.md
    type: text/markdown
    title: Markdown version
  - href: https://vibe.sourcecraft.dev/portal/docs/en/llms.txt
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://vibe.sourcecraft.dev/portal/docs/en/llms.txt

# Setting up repository configurations as code

In a SourceCraft repository, you can set up certain configurations as code, namely:

* [CI/CD](https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/concepts/ci-cd.md)
* [Approval rules](https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/concepts/code-review.md)
* [Branch policies](https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/concepts/branch-policies.md)
* [Webhooks](https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/concepts/webhooks.md)
* [SourceCraft Sites](https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/concepts/sites.md)

You can [set up](#new) a configuration and [view](#view) the status on a separate page in the repository settings.

<iframe width="640" height="360" src="https://runtime.strm.yandex.ru/player/video/vplvn4xjhbvft72jal2l?autoplay=0&mute=0" allow="autoplay; fullscreen; picture-in-picture; encrypted-media" frameborder="0" scrolling="no"></iframe>

## Viewing configurations {#view}

1. Open the SourceCraft [home page](https://sourcecraft.dev).
1. On the ![image](../../_assets/console-icons/house.svg) **Home** tab, under ![image](../../_assets/console-icons/layout-tabs.svg) **Your craftspace**, navigate to ![image](../../_assets/console-icons/archive.svg) **Repositories**.
1. Select a repository.
1. Under ![image](../../_assets/console-icons/gear.svg) **Repository settings** on the repository page, go to ![image](../../_assets/console-icons/nut-hex.svg) **Configurations**.


## Setting up a new configuration {#new}

1. Open the SourceCraft [home page](https://sourcecraft.dev).
1. On the ![image](../../_assets/console-icons/house.svg) **Home** tab, under ![image](../../_assets/console-icons/layout-tabs.svg) **Your craftspace**, navigate to ![image](../../_assets/console-icons/archive.svg) **Repositories**.
1. Select a repository.
1. Under ![image](../../_assets/console-icons/gear.svg) **Repository settings** on the repository page, go to ![image](../../_assets/console-icons/nut-hex.svg) **Configurations**.
1. On the card of the configuration you want to set up, click ![image](../../_assets/console-icons/chevron-down.svg) and select a method:

    * ![image](../../_assets/console-icons/plus.svg) **Blank configuration**
    * ![image](../../_assets/console-icons/sparkles.svg) **Set up using AI**

1. Edit the code yourself or using AI and save the changes:

    <!-- source: en/_includes/sourcecraft/commit-message.md -->
    1. In the top-right corner, click **Commit changes**.
    1. In the window that opens, configure the procedure for changes:

        <!-- source: en/_includes/sourcecraft/commit-message-settings.md -->
        * 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`.
        <!-- endsource: en/_includes/sourcecraft/commit-message-settings.md -->

    1. Confirm your changes.
    <!-- endsource: en/_includes/sourcecraft/commit-message.md -->


## Changing the configuration {#update}

1. Open the SourceCraft [home page](https://sourcecraft.dev).
1. On the ![image](../../_assets/console-icons/house.svg) **Home** tab, under ![image](../../_assets/console-icons/layout-tabs.svg) **Your craftspace**, navigate to ![image](../../_assets/console-icons/archive.svg) **Repositories**.
1. Select a repository.
1. Under ![image](../../_assets/console-icons/gear.svg) **Repository settings** on the repository page, go to ![image](../../_assets/console-icons/nut-hex.svg) **Configurations**.
1. On the card of the configuration you want to edit, click ![image](../../_assets/console-icons/chevron-down.svg) and select a method:

    * ![image](../../_assets/console-icons/pencil.svg) **Edit manually**
    * ![image](../../_assets/console-icons/sparkles.svg) **Fix using AI**

1. Edit the code yourself or using AI and save the changes:

    <!-- source: en/_includes/sourcecraft/commit-message.md -->
    1. In the top-right corner, click **Commit changes**.
    1. In the window that opens, configure the procedure for changes:

        <!-- source: en/_includes/sourcecraft/commit-message-settings.md -->
        * 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`.
        <!-- endsource: en/_includes/sourcecraft/commit-message-settings.md -->

    1. Confirm your changes.
    <!-- endsource: en/_includes/sourcecraft/commit-message.md -->

#### Useful links {#see-also}

* [Configuring CI/CD in a SourceCraft repository](https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/operations/ci-cd.md)
* [Setting up approval rules in a SourceCraft repository](https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/operations/code-review.md)
* [Setting up a branch policy in a SourceCraft repository](https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/operations/branch-policies.md)
* [Configuring a webhook in a SourceCraft repository](https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/operations/webhooks.md)
* [Hosting a static website from a repository using SourceCraft Sites](https://vibe.sourcecraft.dev/portal/docs/en/sourcecraft/tutorials/sites.md)
