Repository navigation
fix(ci): narrow release validation GitHub contract - #129783
Merged
Merged
Conversation
Replace the checker-only broad Octokit shape with exact issue request and response contracts, and make the test harness reject impossible missing issue responses. Co-authored-by: Dallin Romney <[email protected]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 26, 2026 02:29
Contributor
Author
|
Land-ready on exact head
Current main's broad |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 26, 2026
Replace the checker-only broad Octokit shape with exact issue request and response contracts, and make the test harness reject impossible missing issue responses. Co-authored-by: Dallin Romney <[email protected]>
This was referenced Aug 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supersedes #129733.
What Problem This Solves
Fixes a static-analysis ownership issue where the release-validation publisher's injected GitHub client is declared with
Record<string, unknown>request bags and unknown responses. That makes lint green but discards the exact API contract at the boundary.Why This Change Was Made
Defines only the GitHub Issues methods the publisher calls, with exact request and response shapes for list, get, label, comment, create, update, and pagination. The test harness now rejects an impossible missing
issues.getresponse rather than returning undefined under a non-optional contract.This is the focused replacement requested by ClawSweeper after current
mainabsorbed the separate QA fixture repair. It preserves Dallin Romney's original contribution through the commit trailer.This PR is AI-assisted and manually reviewed.
User Impact
No user-visible runtime behavior changes. CI and future maintenance now get a real typed GitHub boundary instead of a checker-only broad type that permits invalid request shapes to compile.
Evidence
maindirectly inspected:ReleaseValidationCampaignGitHubClientuses broadRecord<string, unknown>request types and unknown responses.node scripts/run-vitest.mjs test/scripts/release-validation-campaign.test.ts— 8/8 passed.node scripts/check-changed.mjs -- scripts/github/release-validation-campaign.d.mts test/scripts/release-validation-campaign.test.ts— passed formatting, script/test typechecks, lint, and policy guards.git diff --check— passed.No QA Lab fixture edits remain in this branch; those are already on
main.