项目文件夹

文件
2026-07-13 13:32:23 +08:00

15 行
415 B
Bash
可执行文件

#!/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