Skip to content

Commit 43a7b21

Browse files
committed
Allow specifying the target version when generating the release log
1 parent 7ba5dd4 commit 43a7b21

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎.github/release_log.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ def main():
2222
sys.exit(1)
2323

2424
from_hash=sys.argv[1]
25+
iflen(sys.argv) >2:
26+
to_hash=sys.argv[2]
2527

26-
r=requests.get(f'{BASE_URL}/{from_hash}...master')
28+
r=requests.get(f'{BASE_URL}/{from_hash}...{to_hash}')
2729
data=json.loads(r.text)
2830

2931
forcommitindata['commits']:

0 commit comments

Comments
(0)