Skip to content

fix(ci): send typed force flag for smoke-test ref reset - #294

Merged
c-vigo merged 1 commit into
release/0.3.0from
bugfix/293-fix-dispatch-branch-reset
Mar 13, 2026
Merged

c-vigo merged 1 commit into
release/0.3.0from
bugfix/293-fix-dispatch-branch-reset

Conversation

@c-vigo

@c-vigo c-vigo commented Mar 13, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes the smoke-test dispatch redeploy failure when resetting an existing chore/deploy-<tag> branch.

The GitHub API PATCH request in repository-dispatch.yml previously sent force as a string (-f force=true), which returns HTTP 422 in the smoke-test repository. This updates the call to use a typed boolean flag.

Type of Change

  • feat -- New feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • assets/smoke-test/.github/workflows/repository-dispatch.yml
    • Changed gh api PATCH argument from -f force=true to -F force=true
    • Ensures force is sent as a boolean, matching GitHub API schema for ref updates

Changelog Entry

No changelog needed. This is an internal CI workflow fix on a release bugfix branch, and issue #293 explicitly sets changelog category to "No changelog needed".

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

N/A

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

Repro/error reference: https://github.com/vig-os/devcontainer-smoke-test/actions/runs/23051686417/job/66954252175

Refs: #293

@c-vigo c-vigo self-assigned this Mar 13, 2026
@c-vigo
c-vigo requested a review from Copilot March 13, 2026 13:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 api PATCH call to use typed field input (-F force=true) so force is transmitted as a boolean.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@c-vigo
c-vigo merged commit 5163a01 into release/0.3.0 Mar 13, 2026
12 of 14 checks passed
@c-vigo
c-vigo deleted the bugfix/293-fix-dispatch-branch-reset branch March 13, 2026 13:05
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.

2 participants