-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
docs: add migration tool info #3708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary of Changes
Hello @ReneWerner87, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
This pull request updates the Fiber v3 documentation to prominently feature and detail the new CLI-powered migration tool. The changes aim to streamline the upgrade process for users by providing clear instructions on how to use the fiber migrate command, ensuring a smoother transition from Fiber v2 to v3.
Highlights
- New CLI Migration Tool Highlight: A new section has been added to the "What's New" page for Fiber v3, introducing the CLI-powered migration helper and providing quick installation and usage instructions.
- Detailed Migration Command Options: Detailed information about the
fiber migratecommand, including its syntax and available options (--to,--force,--skip_go_mod), has been added to the migration guide section.
Using Gemini Code Assist
The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.
Invoking Gemini
You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.
| Feature | Command | Description |
|---|---|---|
| Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
| Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
| Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
| Help | /gemini help |
Displays a list of available commands. |
Customization
To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.
Limitations & Feedback
Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.
Footnotes
-
Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. WalkthroughAdds documentation for a CLI-based migration tool to Fiber v3 in Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant User as Developer
participant CLI as Fiber CLI
participant Docs as docs/whats_new.md
rect rgb(230, 248, 255)
Note right of User: read docs & install CLI
end
User->>Docs: reads Migration tool section
User->>CLI: run `fiber migrate --to 3.0.0` (with flags)
CLI->>CLI: parse flags (-t/-f/-s)
alt Valid target/version
CLI->>User: apply migration steps (modify files, print summary)
else Invalid or forced skip
CLI->>User: warn/error or proceed with `--force`/`--skip_go_mod`
end
CLI->>Docs: reference migration guide link (for manual steps)
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
✨ Finishing Touches🧪 Generate 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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request adds documentation for the new CLI migration tool in Fiber v3. The changes clearly highlight the tool at the top of the 'What's New' page and provide detailed information about the fiber migrate command and its options in the migration guide. My feedback includes a suggestion to improve the readability of the command options' descriptions for better clarity.
| - `-t, --to string` migrate to a specific version, e.g. `3.0.0` | ||
| - `-f, --force` force migration even if already on that version | ||
| - `-s, --skip_go_mod` skip running `go mod tidy`, `go mod download`, and `go mod vendor` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For better readability, consider rephrasing the descriptions for the CLI options to be more concise and consistently formatted. This will help users quickly understand the purpose of each flag.
| - `-t, --to string` migrate to a specific version, e.g. `3.0.0` | |
| - `-f, --force` force migration even if already on that version | |
| - `-s, --skip_go_mod` skip running `go mod tidy`, `go mod download`, and `go mod vendor` | |
| - `-t, --to string` Target version for migration (e.g., `3.0.0`). | |
| - `-f, --force` Force migration, even if the project is already on the target version. | |
| - `-s, --skip_go_mod` Skip running `go mod` commands (`tidy`, `download`, `vendor`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (1)
docs/whats_new.md (1)
16-27: Nice addition: quick-start migration helper is front-and-center.Good placement and concise example. One small but important fix: the intra-page link likely won’t resolve.
- The target heading is “## 📋 Migration guide” (Line 1417). The current link uses
#-migration-guide, which can break depending on slug rules. Prefer a stable explicit anchor.Apply this diff to fix the link here, and add an explicit ID on the target heading (shown below in a separate snippet):
-See the [migration guide](#-migration-guide) for more details and options. +See the [migration guide](#migration-guide) for more details and options.Outside the changed hunk, add an explicit anchor to the target heading to guarantee stability across renderers:
## 📋 Migration guide {#migration-guide}Please click the link in your local preview to confirm it resolves after the change.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
docs/whats_new.md(2 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
docs/**
📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Review and update the contents of the
docsfolder if necessary when modifying code
Files:
docs/whats_new.md
🧠 Learnings (1)
📚 Learning: 2024-11-15T07:56:21.623Z
Learnt from: ReneWerner87
PR: gofiber/fiber#3161
File: app.go:923-932
Timestamp: 2024-11-15T07:56:21.623Z
Learning: In the Fiber framework, breaking changes are acceptable when moving from version 2 to version 3, including modifications to method signatures such as in the `Test` method in `app.go`.
Applied to files:
docs/whats_new.md
🪛 GitHub Check: markdownlint
docs/whats_new.md
[failure] 1426-1426: Emphasis used instead of a heading
docs/whats_new.md:1426 MD036/no-emphasis-as-heading Emphasis used instead of a heading [Context: "Options"] https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md036.md
🪛 markdownlint-cli2 (0.17.2)
docs/whats_new.md
1426-1426: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
🪛 GitHub Actions: markdownlint
docs/whats_new.md
[error] 1426-1426: Step 'DavidAnson/markdownlint-cli2-action@v20' failed: MD036/no-emphasis-as-heading Emphasis used instead of a heading [Context: "Options"] https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md036.md
🔇 Additional comments (1)
docs/whats_new.md (1)
1428-1431: CLI migrate flags are in sync—no documentation changes needed.The
-t, --to string,-f, --force, and-s, --skip_go_modflags in docs/whats_new.md exactly match the currentfiber migrate --helpoutput, so the examples are accurate.
Summary
fiber migratecommand and options in migration guide sectionTesting
make audit(fails: EncodeMsg passes lock by value)make generatemake betteralign(fails: package requires newer Go version go1.25)make modernize(fails: package requires newer Go version go1.25)make formattimeout 100s make test(fails: Test_App_BodyLimit_Negative i/o timeout)https://chatgpt.com/codex/tasks/task_e_68aa4ddb50cc8326a4ec05ce449488e1