Skip to content

chore: add a guarded manual repair for historical release descriptions - #1477

Open
yeongseon wants to merge 2 commits into
mainfrom
chore/guard-historical-release-body-repairs
Open

yeongseon wants to merge 2 commits into
mainfrom
chore/guard-historical-release-body-repairs

Conversation

@yeongseon

Copy link
Copy Markdown
Contributor

Refs #1356.

The previous one-time correction scripts were removed in #1339 and the previous workflow in #1172. This manual CLI uses the existing SQLAlchemy-CUBRID extractor and a read-only diff by default. The normal release and PyPI workflows are untouched.

The CLI targets one published stable tag and release ID. Applying an edit requires a clean checkout at the approved SHA, the expected hashes of both bodies, explicit body-only approval, a durable backup directory, and a maintainer-confirmed exclusive editing window. It backs up the complete original Release JSON without overwriting an earlier backup, re-reads the target, PATCHes only the body, then re-reads the public record and checks the body and metadata. GitHub has no atomic Release-body compare-and-swap, so the editing-window requirement remains operational.

Adapted from cubrid-lab/pycubrid#1347. The SQLAlchemy-CUBRID checks include the existing first-tag extraction rule, tag-matching title and a changed remote body that already equals the proposed text. All 12 tests passed offline with mocked GitHub operations. Ruff checks and formatting passed. No write was attempted against a published Release. Please independently review before merge or use.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant