Created
May 15, 2020 05:00
-
-
Save mkllnk/66dd771c6137e4013e83981c0915d55d to your computer and use it in GitHub Desktop.
Draft the next Open Food Network release
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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