Skip to content

ci: auto-merge generated types PR#106

Merged
Kikolator merged 1 commit intodevfrom
ci/auto-merge-types-pr
Mar 25, 2026
Merged

ci: auto-merge generated types PR#106
Kikolator merged 1 commit intodevfrom
ci/auto-merge-types-pr

Conversation

@Kikolator
Copy link
Copy Markdown
Owner

Summary

  • Exclude packages/db/types/database.ts from CI's src path filter — auto-generated types don't need lint/typecheck/build/test
  • Enable auto-merge (--auto --squash) on the types PR in deploy-dev workflow
  • When the types PR only changes database.ts, all required checks skip (skipped = passing), and the PR auto-merges
  • Also enabled auto-merge repo setting via API

How it works

  1. Deploy Dev generates types and creates a PR (existing behavior)
  2. CI detects only database.ts changed → all jobs skip → required checks satisfied
  3. gh pr merge --auto --squash kicks in → PR merges automatically
  4. No manual intervention, no wasted CI minutes

Test plan

  • Verify this PR's CI runs correctly (this PR changes workflow files, so src filter should match)
  • After merging, trigger a migration on dev and verify the types PR auto-merges

🤖 Generated with Claude Code

Two changes work together:

1. CI: Exclude packages/db/types/database.ts from the src path filter.
   When the types PR only changes this auto-generated file, all required
   checks skip — and skipped checks satisfy the GitHub ruleset.

2. Deploy Dev: Enable auto-merge (--auto --squash) on the types PR after
   creation. Once CI checks skip/pass, the PR merges automatically.

This eliminates manual intervention for type regeneration PRs and avoids
wasting CI minutes on auto-generated code.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
cowork-admin Ignored Ignored Mar 25, 2026 0:46am
cowork-platform Ignored Ignored Mar 25, 2026 0:46am

Request Review

@Kikolator Kikolator enabled auto-merge (squash) March 25, 2026 12:48
@Kikolator Kikolator merged commit 7ccc288 into dev Mar 25, 2026
11 checks passed
@Kikolator Kikolator deleted the ci/auto-merge-types-pr branch March 25, 2026 12:51
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.

1 participant