Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
jsonrpsee
Commits
937e260e
Unverified
Commit
937e260e
authored
Nov 18, 2022
by
Alexandru Vasile
Committed by
GitHub
Nov 18, 2022
Browse files
scripts: Fix `generate_changelog.sh` with empty printf (#942)
Signed-off-by:
Alexandru Vasile
<
alexandru.vasile@parity.io
>
parent
28c8ba52
Pipeline
#227560
failed with stages
in 1 minute and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
scripts/generate_changelog.sh
View file @
937e260e
...
...
@@ -55,8 +55,10 @@ function generate_changelog() {
pr_link
=
"
$REMOTE_LINK$pr_number
"
# Generate the link as markdown.
pr_md_link
=
" ([#
$pr_number
](
$pr_link
))"
# Print the changelog line as `- commit-title pr-link`.
echo
"
$line
"
|
awk
-v
var
=
"
$pr_md_link
"
'{NF--; printf "- "; printf; print var}'
# Print every word from the commit title, except the last word.
# 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
"
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment