Skip to content

Commit 036c53d

Browse files
authored
Fix variable name for main PR author check
1 parent e91dba6 commit 036c53d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/merge-train/squash-pr.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ authors_info=$(git log "$merge_base..$original_head" --no-merges --format='%an <
6262
co_authors=""
6363
while IFS= read -r author_line; do
6464
# Skip empty lines, the main PR author, AztecBot, and [email protected]
65-
if [[ -n "$author_line" ]] && [[ "$author_line" != *"$author_name"* ]] && [[ "$author_line" != *"$author_email"* ]] && [[ "$author_line" != *"AztecBot"* ]] && [[ "$author_line" != *"[email protected]"* ]]; then
65+
if [[ -n "$author_line" ]] && [[ "$author_line" != *"$pr_author"* ]] && [[ "$author_line" != *"$author_email"* ]] && [[ "$author_line" != *"AztecBot"* ]] && [[ "$author_line" != *"[email protected]"* ]]; then
6666
co_authors="${co_authors}Co-authored-by: ${author_line}
6767
"
6868
fi

0 commit comments

Comments
 (0)