space around + and single quote non interpolated strings
This commit is contained in:
parent
8a7bcd4764
commit
b989cf6a04
@ -42,7 +42,7 @@ class SemVer(object):
|
||||
br = b.stdout.read().decode('utf-8')
|
||||
#remove newline
|
||||
branch=br.rstrip()
|
||||
print("Main branch is "+branch)
|
||||
print('Main branch is ' + branch)
|
||||
matches = self.GET_COMMIT_MESSAGE.search(message)
|
||||
if matches:
|
||||
if str(matches.group(4)) == branch:
|
||||
@ -50,16 +50,11 @@ class SemVer(object):
|
||||
else:
|
||||
self.merged_branch = matches.group(4)
|
||||
self.main_branch = branch
|
||||
#print("group1 "+matches.group(1))
|
||||
#print("group2 "+matches.group(2))
|
||||
#print("group3 "+matches.group(3))
|
||||
#print("group4 "+matches.group(4))
|
||||
|
||||
return bool(matches)
|
||||
|
||||
# based on branches involved see what type of versioning should be done
|
||||
def get_version_type(self):
|
||||
print("Merged branch is "+self.merged_branch)
|
||||
print('Merged branch is ' + self.merged_branch)
|
||||
for prefix in self.major_branches:
|
||||
if self.merged_branch.startswith(prefix + '/'):
|
||||
self.version_type = 'major'
|
||||
|
Loading…
Reference in New Issue
Block a user