Skip to content

Commit e1d27d2

Browse files
committed
Machine-generated release notes for MAME 0.274
1 parent 6b13883 commit e1d27d2

File tree

2 files changed

+5839
-1
lines changed

2 files changed

+5839
-1
lines changed

makewn.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -782,11 +782,15 @@ def print_pull_request(pullreq):
782782

783783
if notes:
784784
merged_pat = re.compile('^\\* .+ by @[^ ]+ in https://github\\.com/mamedev/mame/pull/([1-9][0-9]+)$')
785+
merged = []
785786
with open(notes, 'r', encoding='utf-8') as f:
786787
for line in f:
787788
m = merged_pat.match(line)
788789
if m:
789-
print_pull_request(api.pull_request(int(m.group(1))))
790+
merged.append(int(m.group(1)))
791+
merged.sort()
792+
for pr in merged:
793+
print_pull_request(api.pull_request(pr))
790794
else:
791795
commits = frozenset(repo.git.rev_list(current.hexsha, '^' + previous.hexsha).splitlines())
792796
for pr in api.fresher_pull_requests(commits):

0 commit comments

Comments
 (0)