# Code deployments

Sleuth uses your code repositories as its main sources of change. Setting up a code deployment in Sleuth allows us to track and alert on what goes into every code deploy. A code deploy surfaces all the **pull requests, linked issues, commits and authors** included in every deploy. This information allows Sleuth to:

* Track your deployment's Accelerate DevOps metrics
  * Deploy frequency, change lead time, change failure rate, MTTR and deploy size
* [Lock deployments](https://help.sleuth.io/modeling-your-deployments/code-deployments/deployment-locking) so you can pump the brakes on deploying when needed
* Slice and dice past deploys with [powerful search](https://help.sleuth.io/modeling-your-deployments/code-deployments/search)
* Highlight [drift between your different deployment environments](https://help.sleuth.io/modeling-your-deployments/code-deployments/environment-drift)
* Sleuth [automatically tag deploys](https://help.sleuth.io/modeling-your-deployments/code-deployments/tags) based on the code that's changed
* and much more...

<figure><img src="https://2832637360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1bR_-Od0islbiOl4G0%2Fuploads%2FmilzX6kkXxLr1hfaXiP2%2Fimage.png?alt=media&#x26;token=543bce73-441e-4d39-90b7-5148d3251cd3" alt=""><figcaption></figcaption></figure>
