File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,16 +13,16 @@ set -e
13
13
[ $# -eq 0 ] && set -- --help
14
14
15
15
# parse args
16
- repo=$( git remote -v | grep push | awk ' {print $2}' | cut -d' /' -f4-)
16
+ repo=$( git remote -v | grep push | awk ' {print $2}' | cut -d' /' -f4- | sed ' s/\.git// ' )
17
17
base=$( git tag -l | sort -n | tail -n 1)
18
18
head=" HEAD"
19
19
api_url=" https://api.github.com"
20
20
21
- echo " # $base ..$head "
21
+ echo " # $repo $ base ..$head "
22
22
echo
23
23
24
24
# get merged PR's. Better way is to query the API for these, but this is easier
25
- for pr in $( git log --oneline v1.3.6..HEAD | grep " Merge pull request" | awk ' {gsub("#",""); print $5}' )
25
+ for pr in $( git log --oneline $base .. $head | grep " Merge pull request" | awk ' {gsub("#",""); print $5}' )
26
26
do
27
27
# frustrated with trying to pull out the right values, fell back to ruby
28
28
curl -s " $api_url /repos/$repo /pulls/$pr " | ruby -rjson -e ' pr=JSON.parse(STDIN.read); puts "* #{pr[%q(title)]} [##{pr[%q(number)]}](#{pr[%q(html_url)]})"'
You can’t perform that action at this time.
0 commit comments