Skip to content

Commit ab3f124

Browse files
authored
Merge pull request innogames#26 from innogames/feature/ignore-summary-length-for-merge-commits
Reduce severity of length for merge commit summary
2 parents 53ea789 + 54b4f8d commit ab3f124

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎igcommit/commit_checks.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,11 @@ def get_summary_problems(self, rest):
137137

138138
rest_len=len(rest)
139139
ifrest_len>72:
140-
yieldSeverity.ERROR, 'commit summary longer than 72 characters'
140+
ifrest.startswith('Merge branch '):
141+
sev=Severity.WARNING
142+
else:
143+
sev=Severity.ERROR
144+
yieldsev, 'commit summary longer than 72 characters'
141145
elifrest_len>50:
142146
yieldSeverity.WARNING, 'commit summary longer than 50 characters'
143147

0 commit comments

Comments
(0)