

# Enable CloudFormation to post a summary of stack changes in pull requests
<a name="gitsync-enable-comments-on-pull-requests"></a>

This topic shows you how to enable CloudFormation to post a summary of stack changes in pull requests in your Git repository.

By enabling the comments on pull requests feature, you allow CloudFormation to post a comment that describes the differences between the current stack configuration and the proposed changes when the repo files are updated. This comment provides a summary of the resources that will be added, modified, or deleted, allowing you to perform a thorough code review before merging the pull request.

**To enable comments on pull requests for a new stack (console)**  
When you create the stack, on the **Specify stack details** page, under **Template definition repository**, make sure the **Enable comment on pull request** toggle is switched on. This is the default setting for new stacks. 

**To enable comments on pull requests for an existing stack (console)**

1. Sign in to the AWS Management Console and open the CloudFormation console at [https://console.aws.amazon.com/cloudformation](https://console.aws.amazon.com/cloudformation/).

1. On the navigation bar at the top of the screen, choose the AWS Region that you created your stack in.

1. On the **Stacks** page, choose the running stack that you want to update.

1. Choose the **Git sync** tab, and then choose **Edit**.

1. On the **Edit Git sync settings** page, under **Template definition repository**, switch the **Enable comment on pull request** toggle on.

1. Choose **Update configuration**.