Repository navigation
fix(ci): remove sync-main-to-dev workflow_dispatch CI trigger - #406
Merged
Merged
Conversation
There was a problem hiding this comment.
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 fromsync-main-to-devworkflows. - Drop the
actions: writepermission 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.
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
Removes the post–sync-PR
workflow_dispatchstep fromsync-main-to-devin 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 dropsactions: writefrom the sync job, which was only needed to run workflows via the API.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
.github/workflows/sync-main-to-dev.ymlgh workflow run ci.yml)actions: writefrom the sync jobassets/workspace/.github/workflows/sync-main-to-dev.yml— same workflow changes for downstream copiesCHANGELOG.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 removalassets/workspace/.devcontainer/CHANGELOG.md— manifest sync of root changeloggit 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
workflow_dispatchruns are omitted from the PR status check rollup, so they do not satisfy branch protection on the sync PRgh workflow run ci.ymlstep and dropactions: writefrom the sync job in.github/workflows/sync-main-to-dev.ymlandassets/workspace/.github/workflows/sync-main-to-dev.ymlTesting
just test)Manual Testing Details
N/A — workflow YAML and changelog only; behavior verified via analysis on #405.
Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
## [0.3.1] - TBDper release-branch convention (see.cursor/rules/changelog.mdc).release/0.3.1includes earlier commits that introduced then adjusted the dispatch; net result matches the final commit message.Refs: #405