aboutsummaryrefslogtreecommitdiffhomepage
path: root/PRESUBMIT.py
diff options
context:
space:
mode:
authorGravatar Eric Boren <borenet@google.com>2017-05-05 13:15:00 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-05 17:42:26 +0000
commit9518830650a45446756d7b621fc87e7a8ff52476 (patch)
treeb6fabaf24e7b926ee45803e83eba68ce1d20725e /PRESUBMIT.py
parentafc23685e04288557db47e8d08d8fc301773a827 (diff)
Presubmit: ensure empty line between CL title and description
Bug: skia: Change-Id: If1b2d655e9be4b960f76d2d17ce1cf1126f7b2d4 Reviewed-on: https://skia-review.googlesource.com/15624 Reviewed-by: Eric Boren <borenet@google.com> Commit-Queue: Eric Boren <borenet@google.com>
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r--PRESUBMIT.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 0baf69c998..dd6512b87b 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -537,6 +537,11 @@ def PostUploadHook(cl, change, output_api):
if cq_master_to_trybots:
_AddCQExtraTrybotsToDesc(cq_master_to_trybots, new_description_lines)
+ # Ensure that there's an empty line between the title and description.
+ if len(new_description_lines) > 1:
+ if new_description_lines[0] != '':
+ new_description_lines.insert(1, '')
+
# If the description has changed update it.
if new_description_lines != original_description_lines:
cl.UpdateDescriptionFooters(new_description_lines, footers)