mirror of
https://github.com/evilsocket/arc.git
synced 2024-05-26 22:37:37 +03:00
new: using stork for release and changelog
This commit is contained in:
64
changelog.sh
64
changelog.sh
@@ -1,64 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
NEW=()
|
||||
FIXES=()
|
||||
MISC=()
|
||||
|
||||
echo "@ Fetching remote tags ..."
|
||||
|
||||
# git fetch --tags > /dev/null
|
||||
|
||||
CURTAG=$(git describe --tags --abbrev=0)
|
||||
OUTPUT=$(git log $CURTAG..HEAD --oneline)
|
||||
IFS=$'\n' LINES=($OUTPUT)
|
||||
|
||||
for LINE in "${LINES[@]}"; do
|
||||
LINE=$(echo "$LINE" | sed -E "s/^[[:xdigit:]]+\s+//")
|
||||
if [[ $LINE = *"new:"* ]]; then
|
||||
LINE=$(echo "$LINE" | sed -E "s/^new: //")
|
||||
NEW+=("$LINE")
|
||||
elif [[ $LINE = *"fix:"* ]]; then
|
||||
LINE=$(echo "$LINE" | sed -E "s/^fix: //")
|
||||
FIXES+=("$LINE")
|
||||
elif [[ $LINE != *"i did not bother commenting"* ]] && [[ $LINE != *"Merge "* ]]; then
|
||||
echo "MISC LINE =$LINE"
|
||||
LINE=$(echo "$LINE" | sed -E "s/^[a-z]+: //")
|
||||
MISC+=("$LINE")
|
||||
fi
|
||||
done
|
||||
|
||||
echo
|
||||
echo "Changelog"
|
||||
echo "==="
|
||||
|
||||
if [ -n "$NEW" ]; then
|
||||
echo
|
||||
echo "**New Features**"
|
||||
echo
|
||||
for l in "${NEW[@]}"
|
||||
do
|
||||
echo "* $l"
|
||||
done
|
||||
fi
|
||||
|
||||
if [ -n "$FIXES" ]; then
|
||||
echo
|
||||
echo "**Fixes**"
|
||||
echo
|
||||
for l in "${FIXES[@]}"
|
||||
do
|
||||
echo "* $l"
|
||||
done
|
||||
fi
|
||||
|
||||
if [ -n "$MISC" ]; then
|
||||
echo
|
||||
echo "**Misc**"
|
||||
echo
|
||||
for l in "${MISC[@]}"
|
||||
do
|
||||
echo "* $l"
|
||||
done
|
||||
fi
|
||||
|
||||
echo
|
||||
7
release.stork
Executable file
7
release.stork
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env stork -f
|
||||
|
||||
version:parser "APP_VERSION\\s*=\\s*['\"]([\\d\\.ab]+)[\"']"
|
||||
version:file "config/version.go"
|
||||
version:from_user
|
||||
|
||||
git:create_tag $VERSION
|
||||
Reference in New Issue
Block a user