Generating change log with aider
You can generate a changelog with aider from the commits since the last version tag:
sh
# Fetch the latest tag
latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1))
# Fetch main branch
git fetch origin main:temp-main
# Create the diff file between the last version and current main branch
git diff $latest_tag..temp-main > diff.txt
# Use 'aider' to update the CHANGELOG file with the changes
aider -f diff.txt -o CHANGELOG
# Remove temp files
git branch -D temp-main
rm diff.txt