~aleteoryx/muditaos

169beb3ec4b212141a98ba2d0fb7632e53e45c60 — Bartosz Cichocki 4 years ago 1e04ada
[EGD-7817][EGD-0000] Allow multiple Jira tickets in commit message

Fixed for commits fixing more than one issue
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|CP)-\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}"')