From 29a2b019cc24783e2f048159603d8cced70c97ef Mon Sep 17 00:00:00 2001 From: dzmitry-duboyski Date: Tue, 17 Nov 2026 01:11:03 +0300 Subject: [PATCH 1/2] docs: drop reverted commits from the 2.0.0 changelog Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4cd116..e703260 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,10 +15,6 @@ All notable changes are documented here. - show request duration in debug RESPONSE - always pair debug REQUEST with a RESPONSE line - compact timestamped debug output -- improve concise debug readability -- format debug output as Linux-style lines -- add concise and trace debug modes -- harden structured debug logging - label server exchanges as JSON blocks - show readable solve duration - add final solve debug summary @@ -41,14 +37,12 @@ All notable changes are documented here. - align debug guide with runnable example - add debug mode example, disable debug in Kaleidoscope example - align README with current SDK -- enable debug directly in Kaleidoscope example - print Kaleidoscope result as JSON - explain example execution flows - make Kaleidoscope example ready to run - add Kaleidoscope example asset - drop npm publishing from missing pipeline features - document integration tests running on pull requests -- update changelog for v1.1.0 ### Maintenance From d0cd9cc19557b2cdc9258cdf15a89f7aa4ec672f Mon Sep 17 00:00:00 2001 From: dzmitry-duboyski Date: Tue, 17 Nov 2026 01:11:03 +0300 Subject: [PATCH 2/2] ci: skip reverted commits and changelog commits in generated changelog Co-Authored-By: Claude Opus 5.5 --- .github/scripts/generate_changelog.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/scripts/generate_changelog.py b/.github/scripts/generate_changelog.py index 70f498e..5156ac9 100644 --- a/.github/scripts/generate_changelog.py +++ b/.github/scripts/generate_changelog.py @@ -23,8 +23,20 @@ def main() -> None: previous = next((tag for tag in tags if tag != args.tag), None) revision = f"{previous}..{args.tag}" if previous else args.tag subjects = git("log", revision, "--format=%s").splitlines() + # A commit reverted within the same release never shipped: drop it together with its revert. + reverted: dict[str, int] = {} + for subject in subjects: + revert = re.fullmatch(r'Revert "(.+)"', subject) + if revert: + reverted[revert.group(1)] = reverted.get(revert.group(1), 0) + 1 grouped: dict[str, list[str]] = {} for subject in subjects: + if reverted.get(subject): + reverted[subject] -= 1 + continue + # The changelog commit of the previous release, made by the changelog job itself. + if re.fullmatch(r"docs: update changelog for v\S+", subject): + continue match = re.match(r"([a-z]+)(?:\([^)]*\))?(!)?:\s*(.+)", subject) if not match: continue