mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-24 21:45:41 +00:00
scripts: Fix generate_changelog.sh with empty printf (#719)
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -55,8 +55,10 @@ function generate_changelog() {
|
|||||||
pr_link="$REMOTE_LINK$pr_number"
|
pr_link="$REMOTE_LINK$pr_number"
|
||||||
# Generate the link as markdown.
|
# Generate the link as markdown.
|
||||||
pr_md_link=" ([#$pr_number]($pr_link))"
|
pr_md_link=" ([#$pr_number]($pr_link))"
|
||||||
# Print the changelog line as `- commit-title pr-link`.
|
# Print every word from the commit title, except the last word.
|
||||||
echo "$line" | awk -v var="$pr_md_link" '{NF--; printf "- "; printf; print var}'
|
# The last word is the PR id that is already included by the pr-link.
|
||||||
|
# The changelog line is `- commit-title pr-link`.
|
||||||
|
echo "$line" | awk -v link="$pr_md_link" '{ printf "- "; for(i=1;i<=NF-1;i++) { printf $i" "} print link}'
|
||||||
done <<< "$prs"
|
done <<< "$prs"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user