From 1d60824d6af7415755992b3c54d4949424278938 Mon Sep 17 00:00:00 2001 From: "Mikhail f. Shiryaev" Date: Tue, 5 Apr 2022 00:52:37 +0200 Subject: [PATCH] Highlight headers in PR template --- .github/PULL_REQUEST_TEMPLATE.md | 4 ++-- tests/ci/run_check.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 6540b60476f..1b7498c3091 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,4 +1,4 @@ -Changelog category (leave one): +## Changelog category (leave one): - New Feature - Improvement - Bug Fix (user-visible misbehaviour in official stable or prestable release) @@ -9,7 +9,7 @@ Changelog category (leave one): - Not for changelog (changelog entry is not required) -Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md): +## Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md): ... diff --git a/tests/ci/run_check.py b/tests/ci/run_check.py index 93dc77124c2..bc818ffb6bf 100644 --- a/tests/ci/run_check.py +++ b/tests/ci/run_check.py @@ -162,7 +162,7 @@ def check_pr_description(pr_info): i = 0 while i < len(lines): - if re.match(r"(?i)^[>*_ ]*change\s*log\s*category", lines[i]): + if re.match(r"(?i)^[#>*_ ]*change\s*log\s*category", lines[i]): i += 1 if i >= len(lines): break @@ -191,7 +191,7 @@ def check_pr_description(pr_info): return result_status[:140], category elif re.match( - r"(?i)^[>*_ ]*(short\s*description|change\s*log\s*entry)", lines[i] + r"(?i)^[#>*_ ]*(short\s*description|change\s*log\s*entry)", lines[i] ): i += 1 # Can have one empty line between header and the entry itself.