Skip to content

Instantly share code, notes, and snippets.

@rootux
Created January 18, 2019 10:48
Show Gist options
  • Save rootux/1bd5ad023f283f91735b7d200e338ea4 to your computer and use it in GitHub Desktop.
Save rootux/1bd5ad023f283f91735b7d200e338ea4 to your computer and use it in GitHub Desktop.
Getting latest closed pr commit messages
#!/bin/sh
# Output github Pull Requests into a file
cmd="hub pr list -s closed -L 15 --format='%uD %H %t %b %n============%n'";
tempfile=~/tmp.txt;
echo '------======IOS=====-------' > $tempfile
cd ~/Documents/projects/project/ios/
eval $cmd >> $tempfile
echo '------======Backend=====-------' >> $tempfile
cd ~/Documents/projects/project/backend/
eval $cmd >> $tempfile
echo '------======Web=====-------' >> $tempfile
cd ~/Documents/projects/project/web/
eval $cmd >> $tempfile
sublime $tempfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment