Skip to content

Instantly share code, notes, and snippets.

@dbwodlf3
Created September 9, 2024 01:47
Show Gist options
  • Save dbwodlf3/72d071ec8acc368252d84de2adf1204b to your computer and use it in GitHub Desktop.
Save dbwodlf3/72d071ec8acc368252d84de2adf1204b to your computer and use it in GitHub Desktop.
git cliff range
#!/bin/bash
tags=$(git tag -i --sort=taggerdate -l "prod-*" | tail -n 3)
first=$(echo "$tags" | head -n 1)
last=$(echo "$tags" | tail -n 1)
range=$(echo "$first..$last")
git-cliff --tag-pattern "(?i)prod-*" $range -o changelog.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment