Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DmitriyLyalyuev/1440e4bf224a13707d7484bdeb7972d2 to your computer and use it in GitHub Desktop.
Save DmitriyLyalyuev/1440e4bf224a13707d7484bdeb7972d2 to your computer and use it in GitHub Desktop.
Remove all draft releases on GitHub
brew install hub
git clone git@github.com:username/reponame
cd reponame
hub release -f "%T (%S) %n" --include-drafts | grep " (draft)" | awk '{print $1}' | xargs -t -n1 hub release delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment