Repository navigation
fix(ci): send typed force flag for smoke-test ref reset - #294
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Fixes a CI failure in the smoke-test repository dispatch workflow when reusing an existing chore/deploy-<tag> branch by ensuring the GitHub API force field is sent as a boolean (not a string), avoiding HTTP 422 validation errors.
Changes:
- Update
gh apiPATCH call to use typed field input (-F force=true) soforceis transmitted as a boolean.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Description
Fixes the smoke-test dispatch redeploy failure when resetting an existing
chore/deploy-<tag>branch.The GitHub API PATCH request in
repository-dispatch.ymlpreviously sentforceas a string (-f force=true), which returnsHTTP 422in the smoke-test repository. This updates the call to use a typed boolean flag.Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
assets/smoke-test/.github/workflows/repository-dispatch.ymlgh apiPATCH argument from-f force=trueto-F force=trueforceis sent as a boolean, matching GitHub API schema for ref updatesChangelog Entry
No changelog needed. This is an internal CI workflow fix on a release bugfix branch, and issue
#293explicitly sets changelog category to "No changelog needed".Testing
just test)Manual Testing Details
N/A
Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Repro/error reference: https://github.com/vig-os/devcontainer-smoke-test/actions/runs/23051686417/job/66954252175
Refs: #293