Revision e431d28f1d0c1f3dab84b9645f777a7ba7647cf4 authored by Maria Khrustaleva on 15 March 2024, 08:05:55 UTC, committed by GitHub on 15 March 2024, 08:05:55 UTC
1 parent 787a0c8
gh_release_notes.sh
#!/bin/sh
# This script takes the release notes for the most recent release
# and reformats them for use in GitHub.
# In GitHub PR and release descriptions, a single line break is
# equivalent to <br>, so we pipe the text through pandoc to unwrap all lines.
set -eu
repo_root="$(dirname "$0")/.."
awk '/^## / { hn += 1; next } hn == 1 && !/^</' "$repo_root/CHANGELOG.md" \
| pandoc -f gfm -t gfm --wrap=none
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...