Skip to content

Commit f6abd42

Browse files
author
Marc Rooding
authored
Update version-update.py
Update the regex to match all version numbers
1 parent 67a3e96 commit f6abd42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

version-update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def extract_gitlab_url_from_project_url():
2121

2222
def extract_merge_request_id_from_commit():
2323
message = git("log", "-1", "--pretty=%B")
24-
matches = re.search(r'(\S*\/\S*!)(\d)', message.decode("utf-8"), re.M|re.I)
24+
matches = re.search(r'(\S*\/\S*!)(\d+)', message.decode("utf-8"), re.M|re.I)
2525

2626
if matches == None:
2727
raise Exception(f"Unable to extract merge request from commit message: {message}")

0 commit comments

Comments
 (0)