Detect multiple tags per commit

This commit is contained in:
Peter J. Holzer 2024-08-19 23:32:56 +02:00 committed by Peter J. Holzer
parent 55d8b3133f
commit 3548a55cce
1 changed files with 1 additions and 3 deletions

4
tagger
View File

@ -20,9 +20,7 @@ need_tag = False
max_major = 0
for ln in result.stdout.split("\n"):
m = re.match(r"[0-9a-f]+ .*\btag: ([-a-z0-9._]+)", ln)
if m:
tag = m.group(1)
for tag in re.findall(r"\btag: ([-a-z0-9._]+)", ln):
if tag.startswith(args.prefix):
found_tags.add(tag)
try: