Merge pull request #2321 from Molecule-AI/auto/issue-canvas-noop-required-check

ci: no-op shadow for Canvas (Next.js) required check
This commit is contained in:
Hongming Wang 2026-04-29 22:47:08 +00:00 committed by GitHub
commit da17753dec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -178,6 +178,26 @@ jobs:
exit 1
fi
# Path-filter no-op shadow for Canvas (Next.js).
#
# Branch protection on staging requires a "Canvas (Next.js)" check.
# When a PR doesn't touch canvas/** paths, the real canvas-build job
# below is skipped via `if:`, and GitHub reports its conclusion as
# SKIPPED — which branch protection treats as not-passed → merge
# BLOCKED on every workspace-server-only or migration-only PR.
#
# Pattern (per durable feedback memory: branch_protection_check_name_parity):
# split into a real job + a no-op shadow that share the same `name:`.
# Exactly one runs per PR; both report the same check context, and at
# least one always reports SUCCESS, satisfying the required check.
canvas-build-noop:
name: Canvas (Next.js)
needs: changes
if: needs.changes.outputs.canvas != 'true'
runs-on: ubuntu-latest
steps:
- run: echo "No canvas/** changes in this PR — Canvas (Next.js) skip is intentional, satisfying required-check via this no-op."
canvas-build:
name: Canvas (Next.js)
needs: changes