# Automatic Creation of Pull Requests

Aikido allows for automatic Pull Request creation on a **daily basis**, handling mass dependency updates, fixing SAST issues, updating container base images, fixing pentest issues, and fixing Code Quality issues. You can fine tune the pull request title, description, labels and other settings with "PR Configuration".

### Setup automatic creation <a href="#setup-automatic-creation" id="setup-automatic-creation"></a>

**Step 1:** Go to [Autofix Settings](https://app.aikido.dev/issues/fix/settings) page

**Step 2:** Scroll down to Automated PRs. Enable the toggle for 'Autocreation of PRs'

<figure><img src="https://help.aikidogov.us/_assets/053cf0854529/image-199.png" alt=""><figcaption></figcaption></figure>

**Step 3:** The configuration modal opens. You can enable autocreation for dependencies in code repos, automated fixes for Docker containers, or automatically fix SAST/IaC, pentest, and Code Quality issues. Make sure to select code repositories and containers for which you want PRs created.

<figure><img src="https://help.aikidogov.us/_assets/cf59af1aa9e5/image-1.png" alt=""><figcaption></figcaption></figure>

**Step 4:** Test whether new PRs are created correctly by clicking the **Test Autocreation** button.

<figure><img src="https://help.aikidogov.us/_assets/e52c1d5fd984/image-202.png" alt=""><figcaption></figcaption></figure>

### Code Dependency Automatic PR creation limits <a href="#pull-request-configuration" id="pull-request-configuration"></a>

AutoFix creates a maximum of **10 PRs per repo** during the **daily** run.

### SAST/IaC Automatic PR creation limits <a href="#pull-request-configuration" id="pull-request-configuration"></a>

When you perform SAST scanning on a repository for the first time, you will typically discover a large amount of issues. To keep the number of pull requests manageable have the following limits when creating PRs for SAST issues:

* PRs are only created for issues where AutoFix has **medium** or **high confidence**
* During the **daily** run, AutoFix will create a **maximum** of **2 PRs per repo** containing a maximum of **5 changed files**.
* AutoFix limits the amount of **open SAST AutoFix PRs** to **10 per repo**. Once that limit is hit, AutoFix doesn't automatically create new SAST AutoFix PRs. When you close or merge the PRs, you will receive new PRs during the next daily run.

If you need higher limits, reach out to us in the Aikido UI.

### Pull Request Configuration <a href="#pull-request-configuration" id="pull-request-configuration"></a>

You can configure pull request properties (such as the title, labels, branch name, and commit message) on the AutoFix PR Configuration page. More docs can be found [here](https://help.aikidogov.us/autofix-and-remediation/configure/autofix-pr-configuration).
