This product is not supported for your selected
Datadog site. (
).
이 페이지는 아직 영어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우
언제든지 연락주시기 바랍니다.Join the Preview!
PR Gates are in Preview.
Overview
PR Gates allow you to control software security and quality by configuring rules to block pull requests with substandard code from being merged. Preventing pull requests with substandard code from being merged can ensure that the code that is eventually deployed to production adheres to high organizational standards, reducing incidents and minimizing unwanted behaviors.
Use PR Gates to:
- Create rules that block pull requests using data in Datadog, ensuring that only code that meets your standards end up being merged.
- Give your organization the ability to prevent substandard code changes from ever reaching production.
- Continually improve code security and quality with precise enforcement and customizable rules.
You can configure PR Gates rules for the following categories:
After creating PR Gates rules, Datadog will automatically create checks on your pull requests using the GitHub integration or Azure DevOps integration. Set those checks as required in GitHub or Azure DevOps when you are ready to enforce them.
Rule types
PR Gates offers the following rule types:
You can create rules to block code from being merged when a pull request introduces at least one code vulnerability or code quality violation of a certain severity.
You can create rules to block code from being merged when a pull request introduces at least one library vulnerability of a certain severity or at least one library with a forbidden license.
You can create rules to block code from being merged when a pull request causes the repository’s overall code coverage to fall below a certain percentage or if the patch coverage is below a certain threshold.
You can create rules to block code from being merged when a pull request introduces at least one infrastructure as code (IaC) vulnerability of a certain severity.
To create a PR Gate rule, see the Setup documentation.
Manage rules
You can manage and update PR Gates rules on the PR Gates Rules page. Improve your security and quality practices based on your project requirements and risk tolerances.
You can see all of the rules defined by the organization.
Further Reading