Skip to content

Instantly share code, notes, and snippets.

@mkllnk
Created May 15, 2020 05:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkllnk/66dd771c6137e4013e83981c0915d55d to your computer and use it in GitHub Desktop.
Save mkllnk/66dd771c6137e4013e83981c0915d55d to your computer and use it in GitHub Desktop.
Draft the next Open Food Network release
#!/bin/sh
git fetch upstream
latest="$(git tag --sort="-v:refname" | head -1)"
echo "Changes since last release $latest:"
pr_numbers() {
git log "$latest.." --merges --oneline |\
grep -oP 'Merge pull request #\K[0-9]+(?= from)'
}
pr_numbers |\
while read n; do echo "https://github.com/openfoodfoundation/openfoodnetwork/pull/$n"; done |\
xargs firefox
pr_numbers |\
while read n; do echo "- #$n "; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment