Repository navigation
feat: add a shared checks.yml workflow for commit, format, lint, type and knip checks - #30
Merged
Merged
Conversation
…pe and knip checks `checks.yml` runs five jobs a caller gets under one `checks` job: `commits`, `format`, `lint`, `types` and `knip`. The last four install with pnpm and run the matching `pnpm check:*` script. `commits` runs `scripts/check-commits/check-commits.sh`, checked out from the commit of this workflow the caller resolved, against the caller's pull request. The script carries the three commit checks callers had as copies: no unsquashed `fixup!`/`squash!`/`amend!` commits, each added changeset opens with a commit subject, and each `fix:`/`feat:` commit ships a changeset. It adds a fourth: a commit whose subject is not `fix:` or `feat:` fails when it adds a changeset. Editing or renaming an existing changeset passes under any type, as do bot commits, merge commits and reverts. Unreleased scopes and new packages are read from a monorepo layout or from a single package at the repository root.
christianhg
marked this pull request as draft
November 11, 2026 14:03
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.
Adds
checks.yml, a reusable workflow that runs the commit, format, lint, type and knip checks for a calling repository. A caller adds one job namedchecksthat uses it, so the checks report aschecks / commits,checks / format,checks / lint,checks / typesandchecks / knip, and the pull request row readsChecks / checks / commits (pull_request).The format, lint, types and knip jobs install with pnpm and run the repository's own
pnpm check:*script. Format and types readTURBO_TOKENandTURBO_TEAMwhen the caller passes them. The commits job runs only on pull requests. It checks outscripts/check-commits/check-commits.shfrom the commit of this workflow the caller resolved, so a caller pinned to a commit runs that commit's script.The script keeps the three commit checks the editor and plugin-sdk-value carried as copies: no unsquashed
fixup!/squash!/amend!commits, each added changeset opens with a commit subject, and eachfix:/feat:commit ships a changeset. It adds one rule. A commit whose subject is notfix:orfeat:fails when it adds a changeset. Editing or renaming an existing changeset passes under any type, as do bot commits, merge commits and reverts. It reads unreleased scopes and new packages from a monorepo layout or from a single package at the repository root.scripts/check-commits/test/run.shruns the script against fixture pull requests through a stubbedgh, including a copy of the old workflow logic to show the new rule's cases passed there.