mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-14 18:56:49 +00:00
23 lines
604 B
Bash
Executable File
23 lines
604 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Lists all PRs for the next release in a neat list to copy into the release
|
|
# template. It also opens all PRs in Firefox so that you can find the release
|
|
# notes.
|
|
|
|
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
|