Skip to content

Commit

Permalink
[qa] Updated prefix check in qa.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ppabcd committed Nov 22, 2018
1 parent b9c344e commit 1e9d582
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions openwisp_utils/qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ def check_commit_message():
"Add prefix in beginning of the commit. "
"Example: [module/file/feature]"
)

# Check capital after prefix
commitMessagefirst = api_message_explode[0].replace(prefix.group(), '').strip()
if not commitMessagefirst[0].isupper():
errors.append("No capital letter after prefix")
else:
# Check capital after prefix
commitMessagefirst = api_message_explode[0].replace(prefix.group(), '').strip()
if not commitMessagefirst[0].isupper():
errors.append("No capital letter after prefix")

# Check blank page before first line and second line
if api_message_explode_count > 1:
Expand Down

0 comments on commit 1e9d582

Please sign in to comment.