Skip to content

ci: trigger CI and Release on trunk - #215

Merged
thomasfosterau merged 1 commit into
trunkfrom
trunk-branch-triggers
Oct 3, 2026
Merged

thomasfosterau merged 1 commit into
trunkfrom
trunk-branch-triggers

Conversation

@thomasfosterau

Copy link
Copy Markdown
Owner

Summary

Closes #214

The default branch is now trunk, but CI and Release still triggered only on main. Nothing ran, and no PR could report the check that the Default ruleset requires. This PR:

  • .github/workflows/ci.yml: push and pull_request branch filters [main] → [trunk]; cancel-in-progress ref → refs/heads/trunk; the ruleset comment updated. The job name is unchanged: Lint, type-check, build & test.
  • .github/workflows/release.yml: push.branches → [trunk].
  • .changeset/config.json: baseBranch → trunk.
  • .claude/hooks/fallow-gate.sh: --base origin/main → --base origin/trunk, because origin/main no longer exists.
  • AGENTS.md, CONTRIBUTING.md, PUBLISHING.md, .github/pull_request_template.md (including its blob/main/AGENTS.md link) and a .claude/hooks/session-start.sh comment: branch references → trunk.
  • src/internal/conformance/profile.ts: the filter-profile conformance rules' reference URL …/blob/main/docs/filter-grammar.md → …/blob/trunk/…, reformatted by vp fmt.

CHANGELOG.md is unchanged.

Verification

Run in the order of AGENTS.md → Verification, after rm -rf node_modules && pnpm install --frozen-lockfile:

  • pnpm install --frozen-lockfile: pass
  • vp run build: pass
  • vp check: pass (the first run flagged the line in profile.ts that the URL change made too long; vp fmt fixed it and the rerun passed)
  • vp run check (sources, type-level tests, examples, emitted declarations): pass
  • vp run -r test:unit: pass (1931 + 41 + 38 + 51 tests)
  • vp run docgen (every JSDoc @example compiled and executed): pass
  • fallow audit --format json --quiet --explain --gate-marker agent --base origin/trunk: verdict pass
  • pnpm audit --audit-level high (CI also runs it): pass, no known vulnerabilities

Changeset

  • .changeset/conformance-reference-trunk.md, patch: the conformance reference URLs are published output. Everything else is CI, tooling and docs, which need no changeset.

Notes

  • Required checks: the Default ruleset (id 12361222, active, ~DEFAULT_BRANCH) requires Lint, type-check, build & test (integration 15368, GitHub Actions). No settings were changed.
  • Owner check: if the release environment's deployment branches are restricted to main (PUBLISHING.md setup step 3), allow trunk. I couldn't read the environment settings through the API proxy here.

🤖 Generated with Claude Code


Generated by Claude Code

The default branch was renamed from main to trunk, and the workflows and
the changeset config still named main, so neither ran and no PR could
report the required "Lint, type-check, build & test" check. Point the
branch filters, the cancel-in-progress ref and baseBranch at trunk, run
the fallow gate hook against origin/trunk, and update the branch
references in the docs, the PR template and the filter-profile
conformance reference URL (patch changeset). The job name is unchanged.

Closes #214

Co-Authored-By: Claude <noreply@anthropic.com>
@thomasfosterau
thomasfosterau merged commit 8766164 into trunk Oct 3, 2026
1 check passed
@thomasfosterau
thomasfosterau deleted the trunk-branch-triggers branch October 3, 2026 06:28
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.

CI and Release don't run since the default branch became trunk

2 participants