Skip to content

Commit b69bbd4

Browse files
committed
Fix changelog printing for PR titles with issues linked
1 parent f1d27ac commit b69bbd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/print-changelog-update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ while IFS= read line; do
2727
message=$(echo "$line" | sed 's/^* //g')
2828
message_without_pr_num=$(echo "$message" | sed 's/ (#[0-9][0-9]*)//g')
2929

30-
pr_number=$(echo "$message" | grep -Eo '#[0-9]+' | grep -Eo '[0-9]+'; true)
30+
pr_number=$(echo "$message" | grep -Eo '#[0-9]+' | tail -n1 | grep -Eo '[0-9]+'; true)
3131

3232
if [[ -n "$pr_number" ]]; then
3333
author=$(gh pr view $pr_number --json author -q ".author.login")

0 commit comments

Comments
 (0)