~aleteoryx/muditaos

d0558e5611ef3547e5e0b259862da6d304de1f1f — Marek Niepieklo 4 years ago 8deb3bf
[CP-85] Support for Cp tag in commit message

CenterPure has its own Jira and own tickets tag.
1 files changed, 1 insertions(+), 1 deletions(-)

M tools/check_commit_messages.py
M tools/check_commit_messages.py => tools/check_commit_messages.py +1 -1
@@ 33,7 33,7 @@ def validate_commit(commit):
  empty_line = lines[1]
  body = ''.join(lines[2:]).strip()

  subject_format = r'^\[(EGD|BH)-\d+\] [A-Z].+[^.]$'
  subject_format = r'^\[(EGD|BH|CP)-\d+\] [A-Z].+[^.]$'
  if not re.match(subject_format, subject):
    errors.append(f'[{commit.hexsha}] invalid subject "{subject}", should match format "{subject_format}"')