# 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. 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="/files/06KtM31Ve9xrvoZ2g1ee" 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 and pentest issues. Make sure to select code repositories and containers for which you want PRs created.

<figure><img src="/files/8urbhhpFf4DtoA6LCirX" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/QC3jpcxWzyztUssx3Mnw" alt=""><figcaption></figcaption></figure>

### SAST/IaC Automatic PR creation limitations <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 be 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](/autofix-and-remediation/configure/autofix-pr-configuration.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.aikido.dev/autofix-and-remediation/automation-and-merging/automatic-creation-of-pull-requests.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
