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

# Enable Pull Request Comments

> A how-to for enabling Amplify comments on pull requests for projects currently running silent.

export const amplify = {
  app_url: "https://app.amplify.security"
};

## Why am I not seeing comments on my Pull Requests?

The Amplify platform allows for projects to run silently, meaning that while we are actively detecting
vulnerabilities and generating code fixes for your project, we are not commenting on your Pull Requests.
This is caused by not enabling commenting on the projects when they are added to the Amplify platform.
Follow along with this guide to enable commenting for your projects.

## What comments can I expect Amplify to make on my Pull Requests?

Amplify can be configured to make two different types of comments on your Pull Requests. The first type
of comment is a notification that one or more vulnerabilities have been detected in the new code. The
second type of comment is a notification that a code fix is available for a detected vulnerability. Amplify
can also be configured to comment with "Approvals" on Pull Requests that have no detected vulnerabilities.

### Vulnerability notification

Vulnerability notifications are made on Pull Requests when Amplify detects vulnerabilities in the new code. These
notifications are enabled in the Amplify App by enabling `Merge Comments` for the project.

<img className="block dark:hidden" src="https://mintcdn.com/amplifysecurity/yM-znr0cSZulx4YZ/images/pr-comment-vulns-light.png?fit=max&auto=format&n=yM-znr0cSZulx4YZ&q=85&s=a0ec00d495bcfbf41a0e90026d85ec11" alt="Vulnerability Notification" width="926" height="587" data-path="images/pr-comment-vulns-light.png" />

<img className="hidden dark:block" src="https://mintcdn.com/amplifysecurity/yM-znr0cSZulx4YZ/images/pr-comment-vulns-dark.png?fit=max&auto=format&n=yM-znr0cSZulx4YZ&q=85&s=afe932d7df4e1b8a9e8c2822581fcd8f" alt="Vulnerability Notification" width="968" height="586" data-path="images/pr-comment-vulns-dark.png" />

### Code fix notification

Code fix notifications are made on Pull Requests when a Code Fix is available for a detected vulnerability. These
notifications are enabled in the Amplify App by enabling `Merge Comments` for the project.

<img className="block dark:hidden" src="https://mintcdn.com/amplifysecurity/yM-znr0cSZulx4YZ/images/pr-comment-fix-light.png?fit=max&auto=format&n=yM-znr0cSZulx4YZ&q=85&s=4cb8df0c65b9085f2db1ec7c91b8f902" alt="Code Fix Notification" width="984" height="1157" data-path="images/pr-comment-fix-light.png" />

<img className="hidden dark:block" src="https://mintcdn.com/amplifysecurity/yM-znr0cSZulx4YZ/images/pr-comment-fix-dark.png?fit=max&auto=format&n=yM-znr0cSZulx4YZ&q=85&s=ab85d0a39faa1f653428c3c668f854a8" alt="Code Fix Notification" width="990" height="1170" data-path="images/pr-comment-fix-dark.png" />

### Approval notification

Approval notifications are made on Pull Requests when no vulnerabilities are detected in the new code. These
notifications are enabled in the Amplify App by enabling `Merge Approvals` for the project.

<img className="block dark:hidden" src="https://mintcdn.com/amplifysecurity/yM-znr0cSZulx4YZ/images/pr-comment-approval-light.png?fit=max&auto=format&n=yM-znr0cSZulx4YZ&q=85&s=f5329fa04e2285231533f4066df8935d" alt="Approval Notification" width="914" height="424" data-path="images/pr-comment-approval-light.png" />

<img className="hidden dark:block" src="https://mintcdn.com/amplifysecurity/yM-znr0cSZulx4YZ/images/pr-comment-approval-dark.png?fit=max&auto=format&n=yM-znr0cSZulx4YZ&q=85&s=0c2e91c0fe3b29ca3b03825eb604a5ee" alt="Approval Notification" width="919" height="425" data-path="images/pr-comment-approval-dark.png" />

## How to enable commenting

To enable commenting, Sign in to the [Amplify App](https://app.amplify.security) and select `Projects` on
the Navigation Bar. From the Projects page, you can enable commenting on your projects by selecting the
appropriate options in the `Merge Comments` and `Merge Approvals` columns.

<img className="block dark:hidden" src="https://mintcdn.com/amplifysecurity/yM-znr0cSZulx4YZ/images/project-config-light.png?fit=max&auto=format&n=yM-znr0cSZulx4YZ&q=85&s=3d886b4039fa9c9ec43824c2e251f336" alt="Project Configuration" width="1715" height="1133" data-path="images/project-config-light.png" />

<img className="hidden dark:block" src="https://mintcdn.com/amplifysecurity/yM-znr0cSZulx4YZ/images/project-config-dark.png?fit=max&auto=format&n=yM-znr0cSZulx4YZ&q=85&s=a5f8e3a797f895068646a9771b57d6b4" alt="Project Configuration" width="1714" height="1144" data-path="images/project-config-dark.png" />

Alternatively, Sign in to the [Amplify App](https://app.amplify.security), select `Projects` on
the Navigation Bar, then select the `Settings` tab from the Project's page. From the Project's Settings
you can enable commenting on your projects by selecting the appropriate options under **Integrations**.

<img className="block dark:hidden" src="https://mintcdn.com/amplifysecurity/yM-znr0cSZulx4YZ/images/project-config-details-light.png?fit=max&auto=format&n=yM-znr0cSZulx4YZ&q=85&s=8d498b942c8f522a275d041346a3fb2a" alt="Project Settings" width="1715" height="1144" data-path="images/project-config-details-light.png" />

<img className="hidden dark:block" src="https://mintcdn.com/amplifysecurity/yM-znr0cSZulx4YZ/images/project-config-details-dark.png?fit=max&auto=format&n=yM-znr0cSZulx4YZ&q=85&s=9c825092207edc0b296ecff4859d9502" alt="Project Settings" width="1713" height="1145" data-path="images/project-config-details-dark.png" />
