Skip to content

feat: add gitbun init setup wizard with project detection (#77) - #79

Open
divyanshim27 wants to merge 1 commit into
nirvik34:mainfrom
divyanshim27:feat/init-wizard
Open

feat: add gitbun init setup wizard with project detection (#77)#79
divyanshim27 wants to merge 1 commit into
nirvik34:mainfrom
divyanshim27:feat/init-wizard

Conversation

@divyanshim27

Copy link
Copy Markdown

🐇 Gitbun Init Wizard – Closes #77

This PR implements a new init command that helps users set up their Gitbun configuration interactively.

✨ Features

  • gitbun init – launches an interactive setup wizard
  • gitbun init --yes – non‑interactive mode using defaults
  • Detects project type (Rust, Python, Go, Node.js, React, Next.js)
  • Detects available Ollama models and lists them
  • Prevents accidental overwrite of existing .gitbunrc (asks for confirmation)
  • Writes config to .gitbunrc with user preferences

📁 Files Added/Modified

  • src/commands/init.ts – the wizard logic
  • src/index.ts – registered the init command with Commander

🧪 Testing

Manual testing performed:

  • gitbun init – wizard runs with prompts
  • gitbun init --yes – accepts defaults
  • Overwrite confirmation works when .gitbunrc exists
  • Project detection works correctly

⚠️ Known Issues

  • Some tests in index.staging.test.ts are failing in the CI pre‑commit hook, but these are unrelated to this PR (they existed before). We can fix them in a separate PR.

Closes #77

@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown

@divyanshim27 is attempting to deploy a commit to the nirvik34's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@divyanshim27, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 33 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: bfc6b581-ded3-461c-86ca-0d0178b10712

📥 Commits

Reviewing files that changed from the base of the PR and between 07b25af and b6b9489.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (5)
  • package.json
  • src/commands/init.ts
  • src/index.staging.test.ts
  • src/index.test.ts
  • src/index.ts

Warning

.coderabbit.yaml has a parsing error

The CodeRabbit configuration file in this repository has a parsing error and default settings were used instead. Please fix the error(s) in the configuration file. You can initialize chat with CodeRabbit to get help with the configuration file.

💥 Parsing errors (1)
Validation error: Invalid option: expected one of "quiet"|"chill"|"assertive" at "reviews.profile"
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant