~aleteoryx/muditaos

f554354452aeb966ccd0e96013b9b5339cc9e584 — Marcin Smoczyński 5 years ago c8a3109
[EGD-5344] Fix commit subject check

Commit subject check run with CI was lacking check for:
 - EGD identifier (any word was allowed),
 - capital letter start.
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'^\[\w+-\d+\] .+[^.]$'
  subject_format = r'^\[EGD-\d+\] [A-Z].+[^.]$'
  if not re.match(subject_format, subject):
    errors.append(f'[{commit.hexsha}] invalid subject "{subject}", should match format "{subject_format}"')