Skip to content

chore: check formatting in CI - #1886

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/chore-rs-check-ci
Aug 30, 2026
Merged

chore: check formatting in CI#1886
chenjiahan merged 1 commit into
mainfrom
chenjiahan/chore-rs-check-ci

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Summary

This PR adds formatting verification to CI so formatting regressions fail before merge.

  • Add a check script backed by rs check --type-check, and run it in CI to preserve lint and type checking while adding rs fmt --check.
  • Apply the existing Rstack formatting rules so the repository passes the new check, and remove the redundant sort-package-json script.

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI lite review requested due to automatic review settings August 30, 2026 12:40
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 30, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-30T12:44:33.269719Z 76bc197 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a CI “check” step intended to prevent formatting regressions from merging, while applying repository-wide formatting adjustments to satisfy the new rules.

Changes:

  • Add a new root check script and switch the CI workflow from lint to check.
  • Apply formatter-driven code style updates across core TS sources/tests and docs tables.
  • Remove the redundant sort-package-json script.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
website/docs/zh/guide/migration/tsup.mdx Reformat the tsup→Rslib mapping table to match formatter output.
website/docs/en/guide/migration/tsup.mdx Reformat the tsup→Rslib mapping table to match formatter output.
packages/core/tests/syntax.test.ts Formatter-driven line wrapping/compaction in tests.
packages/core/src/utils/syntax.ts Formatter-driven parenthesization in a ternary/nullish-coalescing return.
packages/core/src/css/libCssExtractLoader.ts Formatter-driven union type formatting.
packages/core/src/config.ts Formatter-driven chaining/object formatting.
package.json Add check script; remove sort-package-json.
.github/workflows/lint.yml Run pnpm run check instead of pnpm run lint.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread package.json
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rslib with  Cloudflare Pages  Cloudflare Pages

Latest commit: 76bc197
Status: ✅  Deploy successful!
Preview URL: https://4a575c04.rslib.pages.dev
Branch Preview URL: https://chenjiahan-chore-rs-check-ci.rslib.pages.dev

View logs

@chenjiahan
chenjiahan merged commit 19a3610 into main Aug 30, 2026
13 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/chore-rs-check-ci branch August 30, 2026 12:56
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.

2 participants