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

+3-1
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+
if len(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
for commit in data['commits']:

0 commit comments

Comments
 (0)