Skip to content

fix(ci): set explicit gh repo context in smoke-test dispatch - #387

Merged
c-vigo merged 1 commit into
release/0.3.1from
bugfix/386-trigger-prepare-release-git-context
Mar 20, 2026
Merged

c-vigo merged 1 commit into
release/0.3.1from
bugfix/386-trigger-prepare-release-git-context

Conversation

@c-vigo

@c-vigo c-vigo commented Mar 19, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fix downstream smoke-test release orchestration jobs that invoke gh without a local Git checkout by setting explicit repository context via GH_REPO. This prevents fatal: not a git repository failures in trigger-prepare-release and guards later release-phase jobs with the same pattern.

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
    • Add job-level GH_REPO: ${{ github.repository }} to cleanup-release
    • Add job-level GH_REPO: ${{ github.repository }} to trigger-prepare-release
    • Add job-level GH_REPO: ${{ github.repository }} to ready-release-pr
    • Add job-level GH_REPO: ${{ github.repository }} to trigger-release
  • CHANGELOG.md
    • Add #386 entry under ### Fixed in active 0.3.1 section
  • assets/workspace/.devcontainer/CHANGELOG.md
    • Mirror the same #386 changelog entry for workspace payload consistency

Changelog Entry

Fixed

  • Smoke-test dispatch gh jobs now set explicit repo context (#386)
    • Add job-level GH_REPO: ${{ github.repository }} to cleanup-release, trigger-prepare-release, ready-release-pr, and trigger-release in assets/smoke-test/.github/workflows/repository-dispatch.yml
    • Prevent gh CLI failures (fatal: not a git repository) in runner jobs that do not perform actions/checkout

Testing

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

Manual Testing Details

  • Reviewed repository-dispatch.yml for all release-phase jobs invoking gh without checkout and confirmed explicit repo context is now set in each affected job
  • Verified staged diff is limited to workflow + changelog updates for #386
  • Ran linter diagnostics on touched files with no reported issues

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

  • This addresses issue #386 and also closes the same latent failure mode in later release-orchestration jobs (ready-release-pr, trigger-release) and cleanup paths.

Refs: #384, #386

@c-vigo c-vigo self-assigned this Mar 19, 2026
@c-vigo
c-vigo requested a review from Copilot March 19, 2026 22:33

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 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 invoke gh without actions/checkout.
  • Add a changelog entry documenting the fix in the root changelog and the synced workspace .devcontainer changelog.

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.

@c-vigo
c-vigo merged commit ffc4e24 into release/0.3.1 Mar 20, 2026
17 checks passed
@c-vigo
c-vigo deleted the bugfix/386-trigger-prepare-release-git-context branch March 20, 2026 07:00
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