Page MenuHomePhorge

collect-changelog
No OneTemporary

Size
706 B
Referenced Files
None
Subscribers
None

collect-changelog

#!/bin/sh
url() {
local mrId="$1"
echo "https://lily-is.land/kazv/kazv/-/merge_requests/$mrId"
}
collectType() {
local suffix="$1"
local header="$2"
local printed=0
local mrId=
for file in changelogs/*."$suffix"; do
if [ '!' -f "$file" ]; then
continue
fi
if [ "$printed" = 0 ]; then
echo
echo "### $header"
printed=1
fi
# Normalize any trailing newlines/spaces, etc.
mrId="$(basename "$file" ".$suffix")"
echo "- $(cat "$file"). $(url "$mrId")"
done
}
collectType security Security
collectType add Added
collectType fix Fixed
collectType remove Removed
rm changelogs/*

File Metadata

Mime Type
text/x-shellscript
Expires
Sat, Nov 23, 8:02 AM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38912
Default Alt Text
collect-changelog (706 B)

Event Timeline