[Custom] Pull Request description (first comment)
  • 29 May 2019
  • 1 Minute To Read
  • Contributors
  • Share
  • Dark

[Custom] Pull Request description (first comment)

  • Share
  • Dark

This rule enables you to aplly regular expression patterns on the Pull Request description / first comment.


Use case(s)

  • Mandatory Pull Request description - enforcing the submission of PR description for a better code review process
  • Pull Request template followed - validating PR description is following the template guidelines
  • Completion of task lists - verifying all tasks on list are done (checked)

When does this rule fail?

When the PR description doesn't follow the custom rule pattern.

Screen Shot 2019-05-28 at 16.46.09

How to fix?

  1. Edit the first comment or check items on the list according to the defined policy requirment:

Screen Shot 2019-05-28 at 17.08.15

Screen Shot 2019-05-28 at 17.11.00

  1. Datree's policy check automatically ensures the PR description meets the policy requirements

Screen Shot 2019-05-28 at 17.14.01

What's Next

Activate Pull Request description custom policy
Was This Article Helpful?