~aleteoryx/muditaos

e63cb65ae96139d70d2355c7fbb9282d8250e52e — Piotr Leniec 5 years ago 7ceb771
[DW-31] Don't require commit subject to start with Add/Change/Fix

After the testing period we decided that the rule to start
a commit subject with Add/Change/Fix is overly restrictive.
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+\] (?:Add|Change|Fix) .+[^.]$'
  subject_format = r'^\[\w+-\d+\] .+[^.]$'
  if not re.match(subject_format, subject):
    errors.append(f'[{commit.hexsha}] invalid subject "{subject}", should match format "{subject_format}"')