Created
January 17, 2017 20:35
-
-
Save drench/5bec9926fc4c3591ad73f5cb51dc8ec5 to your computer and use it in GitHub Desktop.
This generate a list of PR merges between `develop` and the current branch in markdown, suitable for pasting into a PR
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 log develop.. | egrep '\(#\d+\)$' | while read LINE; do | |
pr=$(echo $LINE | sed -E 's/^.+\(#//' | sed -E 's/\)$//') | |
desc=$(echo $LINE | sed -E 's/ *\(#[0-9]+\)$//') | |
echo "$pr\t$desc" | |
done | sort -n | | |
while read LINE; do | |
pr=$(echo $LINE | cut -d' ' -f1) | |
desc=$(echo $LINE | cut -d' ' -f2-) | |
echo '*' https://github.com/tablexi/nucore-open/pull/$pr | |
echo $desc | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment