From d3305c7323e395c63f1653abbaa4ed28d47c2d09 Mon Sep 17 00:00:00 2001 From: thunderbiscuit Date: Tue, 15 Apr 2025 20:33:30 -0400 Subject: [PATCH] docs: add shell script to help build changelog --- parse-commits.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 parse-commits.sh diff --git a/parse-commits.sh b/parse-commits.sh new file mode 100644 index 00000000..7a8d69b6 --- /dev/null +++ b/parse-commits.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +# Usage: bash parse-commits.sh "2025-01-01" "2025-04-01" +START_DATE=$1 +END_DATE=$2 + +echo "" +echo "# Features" +git log --since="$START_DATE" --until="$END_DATE" --pretty=format:"%s" \ + | grep -E "^feat:" \ + | sort +echo "" + +echo "# Fixes" +git log --since="$START_DATE" --until="$END_DATE" --pretty=format:"%s" \ + | grep -E "^fix:" \ + | sort +echo "" + +echo "# Refactor" +git log --since="$START_DATE" --until="$END_DATE" --pretty=format:"%s" \ + | grep -E "^refactor:" \ + | sort +echo "" + +echo "# Chores" +git log --since="$START_DATE" --until="$END_DATE" --pretty=format:"%s" \ + | grep -E "^chore:" \ + | sort