7 from rich.syntax
import Syntax
11 Suggested \s changelog \s entry: 19 re.DOTALL | re.VERBOSE,
25 api = ghapi.all.GhApi(owner=
"pybind", repo=
"pybind11")
27 issues_pages = ghapi.page.paged(
28 api.issues.list_for_repo, labels=
"needs changelog", state=
"closed" 30 issues = (issue
for page
in issues_pages
for issue
in page)
34 changelog = ENTRY.findall(issue.body)
37 if not msg.startswith(
"* "):
39 if not msg.endswith(
"."):
42 msg += f
"\n `#{issue.number} <{issue.html_url}>`_" 44 print(Syntax(msg,
"rst", theme=
"ansi_light", word_wrap=
True))
52 print(
"[blue]" +
"-" * 30)
56 print(f
"[red bold]Missing:[/red bold][red] {issue.title}")
57 print(f
"[red] {issue.html_url}\n")
59 print(
"[bold]Template:\n")
60 msg =
"## Suggested changelog entry:\n\n```rst\n\n```" 61 print(Syntax(msg,
"md", theme=
"ansi_light"))
EIGEN_STRONG_INLINE Packet4f print(const Packet4f &a)