Skip to content

fix(ci): remove sync-main-to-dev workflow_dispatch CI trigger - #406

Merged
c-vigo merged 3 commits into
release/0.3.1from
bugfix/405-sync-main-to-dev-ci
Mar 22, 2026
Merged

c-vigo merged 3 commits into
release/0.3.1from
bugfix/405-sync-main-to-dev-ci

Conversation

@c-vigo

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

Copy link
Copy Markdown
Contributor

Description

Removes the post–sync-PR workflow_dispatch step from sync-main-to-dev in this repo and in the workspace template. That dispatch did not appear in the PR status check rollup, so it could not satisfy branch protection (issue #405 analysis). Also drops actions: write from the sync job, which was only needed to run workflows via the API.

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

  • .github/workflows/sync-main-to-dev.yml
    • Remove "Trigger CI on sync branch" step (gh workflow run ci.yml)
    • Remove actions: write from the sync job
    • Update header pipeline comment
  • assets/workspace/.github/workflows/sync-main-to-dev.yml — same workflow changes for downstream copies
  • CHANGELOG.md — replace the prior [BUG] sync-main-to-dev PRs do not trigger CI in downstream repos #405 entry describing the dispatch workaround with one documenting its removal
  • assets/workspace/.devcontainer/CHANGELOG.md — manifest sync of root changelog

git diff --stat origin/release/0.3.1...HEAD: 4 files, +12 / −6 lines.

Changelog Entry

Target branch is release/0.3.1; entry is under ## [0.3.1] - TBD (not ## Unreleased).

Fixed

  • Sync-main-to-dev no longer dispatches CI via workflow_dispatch (#405)
    • workflow_dispatch runs are omitted from the PR status check rollup, so they do not satisfy branch protection on the sync PR
    • Remove the post-PR gh workflow run ci.yml step and drop actions: write from the sync job in .github/workflows/sync-main-to-dev.yml and assets/workspace/.github/workflows/sync-main-to-dev.yml

Testing

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

Manual Testing Details

N/A — workflow YAML and changelog only; behavior verified via analysis on #405.

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

  • Changelog updated under ## [0.3.1] - TBD per release-branch convention (see .cursor/rules/changelog.mdc).
  • Branch history vs release/0.3.1 includes earlier commits that introduced then adjusted the dispatch; net result matches the final commit message.

Refs: #405

@c-vigo c-vigo self-assigned this Mar 21, 2026
@c-vigo
c-vigo requested a review from Copilot March 21, 2026 23:00

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

Removes the post–sync-PR CI trigger from the sync-main-to-dev workflow (both upstream and workspace template) because the resulting workflow_dispatch runs don’t satisfy PR/branch-protection rollups, and reduces required permissions accordingly.

Changes:

  • Remove the “Trigger CI on sync branch” (gh workflow run ci.yml) step from sync-main-to-dev workflows.
  • Drop the actions: write permission from the sync job (no longer needed when not dispatching workflows).
  • Update workflow header comments and changelog entries documenting the behavioral change.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
.github/workflows/sync-main-to-dev.yml Removes workflow-dispatch CI trigger and tightens job permissions; updates header comment wording.
assets/workspace/.github/workflows/sync-main-to-dev.yml Mirrors the upstream workflow change for downstream template consumers; updates header comment wording.
CHANGELOG.md Replaces the prior #405 workaround note with an entry documenting the dispatch removal.
assets/workspace/.devcontainer/CHANGELOG.md Keeps the workspace template’s shipped changelog in sync with the root changelog update.

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

@c-vigo
c-vigo merged commit 60ae67a into release/0.3.1 Mar 22, 2026
16 checks passed
@c-vigo
c-vigo deleted the bugfix/405-sync-main-to-dev-ci branch March 22, 2026 09:14
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