Repository navigation
fix(ci): set explicit gh repo context in smoke-test dispatch - #387
Merged
c-vigo merged 1 commit intoMar 20, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Fixes downstream smoke-test release orchestration jobs that call the GitHub CLI (gh) without a checked-out git repository by explicitly setting repository context via GH_REPO. This aligns the smoke-test dispatch workflow with how gh behaves when it can’t infer repo context from a local .git directory.
Changes:
- Set job-level
GH_REPO: ${{ github.repository }}for release-orchestration jobs that invokeghwithoutactions/checkout. - Add a changelog entry documenting the fix in the root changelog and the synced workspace
.devcontainerchangelog.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
assets/smoke-test/.github/workflows/repository-dispatch.yml |
Adds GH_REPO at the job level for multiple gh-invoking orchestration jobs to prevent “not a git repository” failures. |
CHANGELOG.md |
Documents the smoke-test dispatch gh repo-context fix under the active 0.3.1 “Fixed” section. |
assets/workspace/.devcontainer/CHANGELOG.md |
Mirrors the same changelog entry for the workspace payload copy. |
💡 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
Fix downstream smoke-test release orchestration jobs that invoke
ghwithout a local Git checkout by setting explicit repository context viaGH_REPO. This preventsfatal: not a git repositoryfailures intrigger-prepare-releaseand guards later release-phase jobs with the same pattern.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_REPO: ${{ github.repository }}tocleanup-releaseGH_REPO: ${{ github.repository }}totrigger-prepare-releaseGH_REPO: ${{ github.repository }}toready-release-prGH_REPO: ${{ github.repository }}totrigger-releaseCHANGELOG.md#386entry under### Fixedin active0.3.1sectionassets/workspace/.devcontainer/CHANGELOG.md#386changelog entry for workspace payload consistencyChangelog Entry
Fixed
GH_REPO: ${{ github.repository }}tocleanup-release,trigger-prepare-release,ready-release-pr, andtrigger-releaseinassets/smoke-test/.github/workflows/repository-dispatch.ymlghCLI failures (fatal: not a git repository) in runner jobs that do not performactions/checkoutTesting
just test)Manual Testing Details
repository-dispatch.ymlfor all release-phase jobs invokingghwithout checkout and confirmed explicit repo context is now set in each affected job#386Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
#386and also closes the same latent failure mode in later release-orchestration jobs (ready-release-pr,trigger-release) and cleanup paths.Refs: #384, #386