diff options
author | Henry Schreiner <HenrySchreinerIII@gmail.com> | 2023-01-03 11:34:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-03 11:34:22 -0500 |
commit | b2d7ad72c24ee8d2acc22a4ce39fa38a1e9d77b8 (patch) | |
tree | 8f01e4d30cee6d97824fd93d6b1d7a4ea07d2ea8 /tools | |
parent | 769fd3b889fef6cddb060f2a0be26aee62b4da05 (diff) | |
download | pybind11-b2d7ad72c24ee8d2acc22a4ce39fa38a1e9d77b8.tar.gz |
chore: prepare for 2.10.3 (#4437)
* docs: update changelog for v2.10.3
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
* chore: bump versions for 2.10.3
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
* chore: fix make changelog script with entry is empty
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/make_changelog.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/make_changelog.py b/tools/make_changelog.py index 839040a9..b5bd8329 100755 --- a/tools/make_changelog.py +++ b/tools/make_changelog.py @@ -31,8 +31,10 @@ issues = (issue for page in issues_pages for issue in page) missing = [] for issue in issues: - changelog = ENTRY.findall(issue.body) - if changelog: + changelog = ENTRY.findall(issue.body or "") + if not changelog or not changelog[0]: + missing.append(issue) + else: (msg,) = changelog if not msg.startswith("* "): msg = "* " + msg @@ -44,9 +46,6 @@ for issue in issues: print(Syntax(msg, "rst", theme="ansi_light", word_wrap=True)) print() - else: - missing.append(issue) - if missing: print() print("[blue]" + "-" * 30) |