> ## Documentation Index
> Fetch the complete documentation index at: https://docs.envzero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Generating & applying fixes

> Generate AI-powered fixes for Code Optimizer issues and submit them as GitHub pull requests, then track resolution status through subsequent scans.

## Overview

When [Code Optimizer](https://docs.envzero.com/guides/policies-governance/code-optimizer/overview.md) detects issues, you can generate AI-powered fixes that are submitted as pull requests for team review.

> [!WARNING]
>
> **VCS Support**: [Pull request creation](https://docs.envzero.com/guides/policies-governance/code-optimizer/setup.md#prerequisites) is supported for **GitHub** and **GitHub Enterprise** only. Other VCS providers (GitLab, Bitbucket, Azure DevOps) support scanning but not PR creation.

## Generating a Fix

### Step-by-Step Process

**1. Select an Issue**

From the Code Optimizer dashboard, click on any **Ongoing** issue to view its details.

**2. Review Issue Details**

Read the issue description, affected code location, and recommended remediation.

**3. Generate Fix**

Click **"Generate Fix"** to invoke AI-powered remediation.

**4. Review the Pull Request**

Code Optimizer creates a PR in your repository.

## Issue Resolution

Issues are marked **Resolved** when:

1. You merge the fix PR
2. [Trigger a new scan](https://docs.envzero.com/guides/policies-governance/code-optimizer/scanning.md#triggering-a-scan)
3. The issue is no longer detected

**If an issue persists after merging:** The fix may not have fully addressed the root cause. Review the scan results and generate a new fix or address it manually.

## Ignoring Issues

**When to ignore:**

* False positives or scanner errors
* Intentional design decisions that violate standard rules
* Rules that don't apply to your use case
* Low priority issues you're not addressing now


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.