From 9e3958673dc634b3b5379c14572bb8b9d2b8c66d Mon Sep 17 00:00:00 2001 From: rldyourmnd Date: Tue, 15 Sep 2026 18:45:54 +0500 Subject: [PATCH] chore(release): 0.1.3 Match the release changelog heading on version only so resolve accepts dates other than 0.1.2. Promote Unreleased into 0.1.3. Co-authored-by: Cursor --- .github/workflows/release.yml | 2 +- CHANGELOG.md | 4 ++++ VERSION | 2 +- tests/test_release_tag_ruleset.py | 8 ++++++++ 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 818f859..f1f44f4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,7 @@ jobs: version="$GITHUB_REF_NAME" [[ "$version" =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$ ]] [ "$(cat VERSION)" = "$version" ] - grep -Fxq "## [$version] - 2026-08-26" CHANGELOG.md + grep -q "^## \[$version\]" CHANGELOG.md git fetch --no-tags origin main git merge-base --is-ancestor "$GITHUB_SHA" origin/main printf 'version=%s\n' "$version" >>"$GITHUB_OUTPUT" diff --git a/CHANGELOG.md b/CHANGELOG.md index 53d299d..7aa40c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ Versioning. ## [Unreleased] +## [0.1.3] - 2026-09-15 + - Repair five contract-authorization workflows that compared an input with an unset authorization output before producing it. Execute regression tests against the actual shell blocks and use the verified output for every contract @@ -16,6 +18,8 @@ Versioning. - Publish unsuccessful completed self-workflow attempts as unassigned, repository-local CI evidence; preserve actual conclusions and exact attempts. +- Match the release changelog heading on version only, not a frozen 0.1.2 date. + ## [0.1.2] - 2026-08-26 ### Changed diff --git a/VERSION b/VERSION index d917d3e..b1e80bb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.2 +0.1.3 diff --git a/tests/test_release_tag_ruleset.py b/tests/test_release_tag_ruleset.py index 70a655d..e400e36 100644 --- a/tests/test_release_tag_ruleset.py +++ b/tests/test_release_tag_ruleset.py @@ -29,3 +29,11 @@ def test_actual_release_refs_receive_immutable_tag_protection(self): for ref in ("refs/heads/0.1.2", "refs/tags/main", "refs/tags/preview/0.1.2", "refs/tags/v1"): with self.subTest(ref=ref): self.assertFalse(any(matches(pattern, ref) for pattern in patterns)) + +class ReleaseChangelogMatchTests(unittest.TestCase): + def test_resolve_matches_any_dated_heading_for_the_tag_version(self): + """A frozen 0.1.2 date in the grep made every later tag fail resolve.""" + source = (ROOT / ".github/workflows/release.yml").read_text() + self.assertIn(r'grep -q "^## \[$version\]" CHANGELOG.md', source) + self.assertNotIn("2026-08-26", source.split("Validate exact release identity", 1)[1].split("git fetch", 1)[0]) +