Skip to content

Commit c7fe88e

Browse files
committed
Fix script/changelog
1 parent 9c6527b commit c7fe88e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

script/changelog

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ set -e
1313
[ $# -eq 0 ] && set -- --help
1414

1515
# 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//')
1717
base=$(git tag -l | sort -n | tail -n 1)
1818
head="HEAD"
1919
api_url="https://api.github.com"
2020

21-
echo "# $base..$head"
21+
echo "# $repo $base..$head"
2222
echo
2323

2424
# 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}')
2626
do
2727
# frustrated with trying to pull out the right values, fell back to ruby
2828
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)]})"'

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy