From aad82c35d65199684de19dea8628f638f1709e67 Mon Sep 17 00:00:00 2001 From: Minglong Pan <56749246+minglong51@users.noreply.github.com> Date: Wed, 19 Aug 2026 21:49:04 -0700 Subject: [PATCH] docs: verify release tag commit directly --- RELEASING.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASING.md b/RELEASING.md index f8e4c0a..93b5a0c 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -79,8 +79,9 @@ Inspect the draft release's generated notes and tag target: set -euo pipefail VERSION="$(python3.12 -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')" +test "$(git rev-parse "v$VERSION^{commit}")" = "$(git rev-parse origin/main)" git show --no-patch --format=fuller "v$VERSION" -gh release view "v$VERSION" --json isDraft,tagName,targetCommitish,name,body +gh release view "v$VERSION" --json isDraft,tagName,name,body ``` If the draft is correct, publish it explicitly: