From 74de196d776911841841a8de6bbd71803630cfee Mon Sep 17 00:00:00 2001 From: Radoslaw Wicik Date: Wed, 12 May 2021 09:07:02 +0200 Subject: [PATCH] [BH-349] Support for BH tag in commit message Bell Hybrid has it's own jira -> own tickets, we need to update commit message checker. --- tools/check_commit_messages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/check_commit_messages.py b/tools/check_commit_messages.py index 7094af76a2681e79a2ab04324167d4d149f079ef..249c107f54a38fffb9bba623c7bf360dcac0c0fb 100755 --- a/tools/check_commit_messages.py +++ b/tools/check_commit_messages.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 ''' -Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved. +Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md ''' @@ -33,7 +33,7 @@ def validate_commit(commit): empty_line = lines[1] body = ''.join(lines[2:]).strip() - subject_format = r'^\[EGD-\d+\] [A-Z].+[^.]$' + subject_format = r'^\[(EGD|BH)-\d+\] [A-Z].+[^.]$' if not re.match(subject_format, subject): errors.append(f'[{commit.hexsha}] invalid subject "{subject}", should match format "{subject_format}"')