mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-15 16:13:20 +00:00
packaging: Add twistie to release notes shortlog
Add a "twistie" / arrow (`▶`) that the user can click on to see the full list of commits _if they want to_. This way, the release notes become easier to read and we can display information below the shortlog which would (probably) normally not be seen due to the huge long list of commits. Fixes: #9075. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
89c76d7d8d
commit
0391c0de82
@ -75,9 +75,19 @@ changes() {
|
||||
echo "**FIXME - message this section by hand to produce a summary please**"
|
||||
|
||||
echo "### Shortlog"
|
||||
|
||||
echo "<details>"
|
||||
echo "<summary>Click the icon to show the list of commits included in this release</summary>"
|
||||
|
||||
# XXX: Essential to have at least one blank line here. It forces
|
||||
# GitHub to show each commit on a separate line.
|
||||
echo
|
||||
|
||||
for cr in $(git log --merges "${previous_release}".."${new_release}" | grep 'Merge:' | awk '{print $2".."$3}'); do
|
||||
git log --oneline "$cr"
|
||||
done
|
||||
|
||||
echo "</details>"
|
||||
}
|
||||
|
||||
print_release_notes() {
|
||||
|
Loading…
Reference in New Issue
Block a user