Skip to content

fix(scripts): restore isDirectReleaseCandidateExecution declaration - #109586

Merged
Patrick-Erichsen merged 1 commit into
mainfrom
fix/checklist-declaration-restore
Jul 17, 2026
Merged

Patrick-Erichsen merged 1 commit into
mainfrom
fix/checklist-declaration-restore

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

check-test-types fails repo-wide on main: test/scripts/release-candidate-checklist.test.ts gets TS2305 because scripts/release-candidate-checklist.d.mts no longer declares isDirectReleaseCandidateExecution at all.

Why This Change Was Made

Two parallel fixes each removed one of the two duplicate declarations: #109553 (082ffd4) and #109560 (69b2916). Merged together they removed both copies. The second merge was not caught because prepare reused a patch-identical pre-rebase CI run, which masked the semantic conflict. This PR restores exactly one documented declaration matching the .mjs implementation signature.

User Impact

Unblocks check-test-types / ci-gate for all open PRs; declarations-only change, no runtime behavior.

Evidence

  • pnpm tsgo:test (full test-types lane): green with the restored declaration.
  • node scripts/run-oxlint.mjs scripts/release-candidate-checklist.d.mts: zero findings (exactly one declaration, no adjacent-overload issue).
  • node scripts/run-vitest.mjs test/scripts/release-candidate-checklist.test.ts: pass.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS maintainer Maintainer-authored PR labels Jul 17, 2026
@Patrick-Erichsen Patrick-Erichsen self-assigned this Jul 17, 2026
@Patrick-Erichsen
Patrick-Erichsen merged commit 6a89730 into main Jul 17, 2026
122 of 127 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the fix/checklist-declaration-restore branch July 17, 2026 03:24
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

Merged via squash.

@steipete

Copy link
Copy Markdown
Contributor Author

Superseded: current main regained exactly one isDirectReleaseCandidateExecution declaration (line 93 of scripts/release-candidate-checklist.d.mts, via the #101826 merge at 09575bd), so check-test-types is unblocked. Landing this PR now would re-introduce the duplicate-declaration lint failure that #109553/#109560 just cleaned up. Closing without merge.

@steipete

Copy link
Copy Markdown
Contributor Author

Heads-up: this merge raced the #101826 merge (which had independently restored the declaration), so main now has the duplicate again (lines 78/101) and check-lint is failing. Canonical cleanup: #109606 removes the second copy, leaving exactly one declaration. Full race chain for context: #109546 introduced the duplicate → #109553 + #109560 removed one copy each in parallel (zero left, check-test-types broke) → #101826 + this PR restored one copy each in parallel (two left, check-lint broke).

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

Labels

maintainer Maintainer-authored PR scripts Repository scripts size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants