Skip to content

Commit 7a64b8a

Browse files
authored
docs: fix script issues for changelog compilation (#3100)
[skip ci]
1 parent 0f4761b commit 7a64b8a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tools/make_changelog.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727

2828
api = ghapi.all.GhApi(owner="pybind", repo="pybind11")
2929

30-
issues = api.issues.list_for_repo(labels="needs changelog", state="closed")
30+
issues_pages = ghapi.page.paged(
31+
api.issues.list_for_repo, labels="needs changelog", state="closed"
32+
)
33+
issues = (issue for page in issues_pages for issue in page)
3134
missing = []
3235

3336
for issue in issues:
@@ -41,7 +44,7 @@
4144

4245
msg += f"\n `#{issue.number} <{issue.html_url}>`_"
4346

44-
print(Syntax(msg, "rst", theme="ansi_light"))
47+
print(Syntax(msg, "rst", theme="ansi_light", word_wrap=True))
4548
print()
4649

4750
else:

0 commit comments

Comments
 (0)