Activate a policy
  • Updated on 21 Apr 2019
  • 1 minute to read
  • Contributors
  • Share
  • Dark
    Light

Activate a policy

  • Share
  • Dark
    Light

This procedure describes how to install Datree on your GitHub organization account.

1. Active Datree's Smart Policy

Navigate to the Datree Policy Management pane , and toggle Smart Policy Management to ON

This is a one-time setup

3x-af91af0-Greenshot_2019-01-20_16.15.44.png

2. Choose your policies

Select the policies you wish to enforce by sliding their toggle button to ON.

3x-80d1d24-Greenshot_2019-01-20_16.16.37.png

Not sure which policies you should activate?
Check your Status Report in order to know!

3. Choose your repositories

By default, all repositories are opt-in, meaning you must choose which repositories you would like the policy to run on:

3x-922c18d-Screen_Shot_2019-01-20_at_16.17.47.png

  • Enable on new repositories by default - automatically sets the policy on new repositories
  • Enable All - activate a policy on all the repositories

3x-9779d8d-Greenshot_2019-01-20_16.20.14.png

4. Check your policy in action

Datree automatically adds a new check mark per each pull request opened in the selected repositories:

A green check mark denotes the pull request met the requirements of the configured policies πŸ˜ƒ

3x-ad7abda-Screen_Shot_2019-01-20_at_17.10.01.png

A red mark denotes the pull request violated one of the configured policies 😡

3x-88bccf0-Screen_Shot_2019-01-20_at_17.10.28.png

Click Details to provide more details regarding which policies passed or failed.

Was this article helpful?