Skip to content

feat(create-rslib): support --no-git - #1835

Merged
chenjiahan merged 2 commits into
mainfrom
chenjiahan/feat-create-rslib-no-git
Aug 10, 2026
Merged

feat(create-rslib): support --no-git#1835
chenjiahan merged 2 commits into
mainfrom
chenjiahan/feat-create-rslib-no-git

Conversation

@chenjiahan

@chenjiahan chenjiahan commented Aug 9, 2026

Copy link
Copy Markdown
Member

Summary

This PR makes create-rslib initialize a Git repository by default while allowing users to opt out with --no-git. It upgrades @rstackjs/create-toolkit to v2.2.1, which handles the flag directly, and heading-case to v1.1.5 for correct Git capitalization checks, and updates the English and Chinese quick-start documentation.

Related Links

Checklist

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

Copilot AI lite review requested due to automatic review settings August 9, 2026 13:04
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rslib with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1b0dd78
Status: ✅  Deploy successful!
Preview URL: https://73e829b4.rslib.pages.dev
Branch Preview URL: https://chenjiahan-feat-create-rslib.rslib.pages.dev

View logs

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

This PR updates create-rslib to initialize a Git repository by default, while providing an opt-out via the new --no-git flag. It also bumps related dependencies to enable/validate the behavior and updates the quick-start docs in both English and Chinese to reflect the new default.

Changes:

  • Add --no-git behavior in create-rslib by passing a git boolean into @rstackjs/create-toolkit.
  • Upgrade @rstackjs/create-toolkit to 2.2.0 and heading-case to ^1.1.5.
  • Update EN/ZH quick-start docs to remove the manual git init step and document --no-git.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
website/docs/zh/guide/start/quick-start.mdx Document Git initialization default and add --no-git option in ZH quick-start.
website/docs/en/guide/start/quick-start.mdx Document Git initialization default and add --no-git option in EN quick-start.
pnpm-workspace.yaml Bump workspace catalog versions for @rstackjs/create-toolkit and heading-case.
pnpm-lock.yaml Update lockfile to reflect the dependency bumps.
packages/create-rslib/src/index.ts Enable Git init by default and disable it when --no-git is provided.
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1b0dd78102

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/create-rslib/src/index.ts Outdated
@chenjiahan
chenjiahan merged commit 818f575 into main Aug 10, 2026
11 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/feat-create-rslib-no-git branch August 10, 2026 02:07
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