Skip to content

Commit c0b459e

Browse files
committed
fixup! build: git tag helper script
Remove author: this is not the GitHub username and will mostly create an invalid user mention link.
1 parent 7caf8d3 commit c0b459e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/git-tag.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,18 @@ def main():
113113
if len(parts) < 2:
114114
continue
115115
message = parts[0]
116-
author = parts[1]
116+
_author = parts[1]
117117

118118
# Extract PR number if present
119119
pr_match = re.search(r"\(#(\d+)\)", message)
120120
if pr_match:
121121
pr_num = pr_match.group(1)
122122
# Remove the (#num) part from message
123123
clean_message = re.sub(r"\s*\(#\d+\)", "", message).strip()
124-
formatted_line = f"{clean_message} by @{author} in #{pr_num}"
124+
formatted_line = f"{clean_message} in #{pr_num}"
125125
formatted_pr_commits.append(formatted_line)
126126
else:
127-
formatted_line = f"{message} by @{author}"
127+
formatted_line = f"{message}"
128128
formatted_other_commits.append(formatted_line)
129129

130130
initial_message = f"Release {new_tag}\n\n"

0 commit comments

Comments
 (0)