We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b13883 commit e1d27d2Copy full SHA for e1d27d2
makewn.py
@@ -782,11 +782,15 @@ def print_pull_request(pullreq):
782
783
if notes:
784
merged_pat = re.compile('^\\* .+ by @[^ ]+ in https://github\\.com/mamedev/mame/pull/([1-9][0-9]+)$')
785
+ merged = []
786
with open(notes, 'r', encoding='utf-8') as f:
787
for line in f:
788
m = merged_pat.match(line)
789
if m:
- 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))
794
else:
795
commits = frozenset(repo.git.rev_list(current.hexsha, '^' + previous.hexsha).splitlines())
796
for pr in api.fresher_pull_requests(commits):
0 commit comments