Skip to content

Instantly share code, notes, and snippets.

@paullaffitte
Created September 23, 2020 12:41
Show Gist options
  • Save paullaffitte/e33f0148abb16d18895639ac3a658b60 to your computer and use it in GitHub Desktop.
Save paullaffitte/e33f0148abb16d18895639ac3a658b60 to your computer and use it in GitHub Desktop.
List Semantic-Releases scopes in a git repository
#! /usr/bin/env bash
git log --pretty=oneline --abbrev-commit | grep -oP '\(([^\)]*)\):' | sort | uniq | cut -c2- | sed 's/..$//'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment