Skip to content

Rewrite the Quickstart as a tutorial. #283

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

Closed
wants to merge 2 commits into from

Conversation

jmacdotorg
Copy link
Collaborator

This rewrite of the Quickstart recasts the page as a tutorial, guiding the reader through letting CodeRabbit review a simple code change that they make to a test repository, and then chatting with the bot a bit.

This builds on the current Quickstart by continuing to demonstrate the ease of GitHub integration, and then immediately following up by prompting to user to make a small, specific pull request and observe how CodeRabbit responds. It also nudges the reader to try talking with CodeRabbit further and letting it generate docstrings, demonstrating some of its secondary features.

Copy link
Contributor

coderabbitai bot commented Apr 16, 2025

Walkthrough

The quickstart documentation was significantly expanded and restructured into a comprehensive, step-by-step tutorial for integrating and using CodeRabbit with a GitHub repository. The updated guide now covers the entire onboarding process, including repository creation, integration steps, a practical code review workflow example, interactive features, and post-review actions. Visual aids and detailed instructions were added, transforming the document from a brief outline into an in-depth onboarding resource for new users.

Changes

File(s) Change Summary
docs/getting-started/quickstart.md Rewritten and expanded from a minimal quickstart to a detailed, step-by-step tutorial with examples and visuals.

Poem

In the warren of docs, a new path unfurled,
Step by step, CodeRabbit’s guide is twirled.
From repo to review, with screenshots in tow,
Each hop brings clarity, helping users to grow.
Now every bunny coder can easily embark,
On their CodeRabbit journey—let’s make our mark!
🐇✨

Tip

⚡💬 Agentic Chat (Pro Plan, General Availability)
  • We're introducing multi-step agentic chat in review comments and issue comments, within and outside of PR's. This feature enhances review and issue discussions with the CodeRabbit agentic chat by enabling advanced interactions, including the ability to create pull requests directly from comments and add commits to existing pull requests.

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • 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

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🧹 Nitpick comments (3)
docs/getting-started/quickstart.md (3)

135-139: Use consistent unordered list style.

The unordered list at the end of the document uses dashes (-) instead of asterisks (*), which is flagged by markdownlint (MD004). For consistency with the rest of the documentation, use asterisks.

Apply this diff to fix the issue:

-- [Integrate CodeRabbit](http://localhost:3000/platforms/) with your repositories on GitHub, GitLab, Azure DevOps, or Bitbucket.
-- [Configure CodeRabbit](/getting-started/configure-coderabbit) beyond its default settings.
-- [Add custom review instructions](/guides/review-instructions).
-- [Get support for CodeRabbit](/getting-started/support).
-- [Learn more about how CodeRabbit works](/overview/why-coderabbit).
+* [Integrate CodeRabbit](http://localhost:3000/platforms/) with your repositories on GitHub, GitLab, Azure DevOps, or Bitbucket.
+* [Configure CodeRabbit](/getting-started/configure-coderabbit) beyond its default settings.
+* [Add custom review instructions](/guides/review-instructions).
+* [Get support for CodeRabbit](/getting-started/support).
+* [Learn more about how CodeRabbit works](/overview/why-coderabbit).
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

135-135: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)


136-136: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)


137-137: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)


138-138: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)


139-139: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)


91-91: Consider stronger wording for clarity.

The phrase "This shows that CodeRabbit has noticed some flaws..." could be strengthened for clarity and impact. Consider using "This indicates" or "This demonstrates" instead.

Apply this diff to improve the wording:

-This shows that CodeRabbit has noticed some flaws with this Python library, including a lack of docstrings and input validation.
+This demonstrates that CodeRabbit has identified some flaws with this Python library, including a lack of docstrings and input validation.
🧰 Tools
🪛 LanguageTool

[style] ~91-~91: Consider using a different verb to strengthen your wording.
Context: ...g-started/quickstart-comment.png) This shows that CodeRabbit has noticed some flaws ...

(SHOW_INDICATE)


121-125: Vary sentence structure for readability.

Three successive sentences begin with "CodeRabbit," which can be repetitive. Consider rephrasing for better flow.

Apply this diff to improve readability:

-	* CodeRabbit creates a new branch, based on `add-utils`.
-
-	* CodeRabbit commits changes to the branch that adds suggested docstrings to `add-utils`.
-
-	* CodeRabbit opens a new pull request between the new branch and `add-utils`.
+* CodeRabbit creates a new branch, based on `add-utils`.
+* It then commits changes to the branch that add suggested docstrings to `add-utils`.
+* Finally, a new pull request is opened between the new branch and `add-utils`.
🧰 Tools
🪛 LanguageTool

[style] ~125-~125: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...uggested docstrings to add-utils. * CodeRabbit opens a new pull request between the ne...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

🪛 markdownlint-cli2 (0.17.2)

121-121: Hard tabs
Column: 1

(MD010, no-hard-tabs)


123-123: Hard tabs
Column: 1

(MD010, no-hard-tabs)


125-125: Hard tabs
Column: 1

(MD010, no-hard-tabs)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b18416a and 42785f8.

⛔ Files ignored due to path filters (1)
  • static/img/getting-started/quickstart-comment.png is excluded by !**/*.png, !**/*.png
📒 Files selected for processing (1)
  • docs/getting-started/quickstart.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/getting-started/quickstart.md

[style] ~91-~91: Consider using a different verb to strengthen your wording.
Context: ...g-started/quickstart-comment.png) This shows that CodeRabbit has noticed some flaws ...

(SHOW_INDICATE)


[style] ~125-~125: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...uggested docstrings to add-utils. * CodeRabbit opens a new pull request between the ne...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

🪛 markdownlint-cli2 (0.17.2)
docs/getting-started/quickstart.md

61-61: Hard tabs
Column: 1

(MD010, no-hard-tabs)


61-61: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


62-62: Hard tabs
Column: 1

(MD010, no-hard-tabs)


64-64: Hard tabs
Column: 1

(MD010, no-hard-tabs)


65-65: Hard tabs
Column: 1

(MD010, no-hard-tabs)


66-66: Hard tabs
Column: 1

(MD010, no-hard-tabs)


68-68: Hard tabs
Column: 1

(MD010, no-hard-tabs)


69-69: Hard tabs
Column: 1

(MD010, no-hard-tabs)


71-71: Hard tabs
Column: 1

(MD010, no-hard-tabs)


72-72: Hard tabs
Column: 1

(MD010, no-hard-tabs)


73-73: Hard tabs
Column: 1

(MD010, no-hard-tabs)


99-99: Hard tabs
Column: 1

(MD010, no-hard-tabs)


99-99: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


100-100: Hard tabs
Column: 1

(MD010, no-hard-tabs)


101-101: Hard tabs
Column: 1

(MD010, no-hard-tabs)


103-103: Hard tabs
Column: 1

(MD010, no-hard-tabs)


105-105: Hard tabs
Column: 1

(MD010, no-hard-tabs)


106-106: Hard tabs
Column: 1

(MD010, no-hard-tabs)


107-107: Hard tabs
Column: 1

(MD010, no-hard-tabs)


108-108: Hard tabs
Column: 1

(MD010, no-hard-tabs)


109-109: Hard tabs
Column: 1

(MD010, no-hard-tabs)


111-111: Hard tabs
Column: 1

(MD010, no-hard-tabs)


115-115: Hard tabs
Column: 1

(MD010, no-hard-tabs)


115-115: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


116-116: Hard tabs
Column: 1

(MD010, no-hard-tabs)


117-117: Hard tabs
Column: 1

(MD010, no-hard-tabs)


119-119: Hard tabs
Column: 1

(MD010, no-hard-tabs)


121-121: Hard tabs
Column: 1

(MD010, no-hard-tabs)


123-123: Hard tabs
Column: 1

(MD010, no-hard-tabs)


125-125: Hard tabs
Column: 1

(MD010, no-hard-tabs)


135-135: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)


136-136: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)


137-137: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)


138-138: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)


139-139: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)

🔇 Additional comments (1)
docs/getting-started/quickstart.md (1)

1-140: Comprehensive, clear, and user-friendly tutorial rewrite.

The overall structure, clarity, and step-by-step approach of the new tutorial are excellent. The instructions are accurate, the flow is logical, and the document provides a much improved onboarding experience for new users. Visual aids and links are well-placed.

🧰 Tools
🪛 LanguageTool

[style] ~91-~91: Consider using a different verb to strengthen your wording.
Context: ...g-started/quickstart-comment.png) This shows that CodeRabbit has noticed some flaws ...

(SHOW_INDICATE)


[style] ~125-~125: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...uggested docstrings to add-utils. * CodeRabbit opens a new pull request between the ne...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

🪛 markdownlint-cli2 (0.17.2)

61-61: Hard tabs
Column: 1

(MD010, no-hard-tabs)


61-61: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


62-62: Hard tabs
Column: 1

(MD010, no-hard-tabs)


64-64: Hard tabs
Column: 1

(MD010, no-hard-tabs)


65-65: Hard tabs
Column: 1

(MD010, no-hard-tabs)


66-66: Hard tabs
Column: 1

(MD010, no-hard-tabs)


68-68: Hard tabs
Column: 1

(MD010, no-hard-tabs)


69-69: Hard tabs
Column: 1

(MD010, no-hard-tabs)


71-71: Hard tabs
Column: 1

(MD010, no-hard-tabs)


72-72: Hard tabs
Column: 1

(MD010, no-hard-tabs)


73-73: Hard tabs
Column: 1

(MD010, no-hard-tabs)


99-99: Hard tabs
Column: 1

(MD010, no-hard-tabs)


99-99: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


100-100: Hard tabs
Column: 1

(MD010, no-hard-tabs)


101-101: Hard tabs
Column: 1

(MD010, no-hard-tabs)


103-103: Hard tabs
Column: 1

(MD010, no-hard-tabs)


105-105: Hard tabs
Column: 1

(MD010, no-hard-tabs)


106-106: Hard tabs
Column: 1

(MD010, no-hard-tabs)


107-107: Hard tabs
Column: 1

(MD010, no-hard-tabs)


108-108: Hard tabs
Column: 1

(MD010, no-hard-tabs)


109-109: Hard tabs
Column: 1

(MD010, no-hard-tabs)


111-111: Hard tabs
Column: 1

(MD010, no-hard-tabs)


115-115: Hard tabs
Column: 1

(MD010, no-hard-tabs)


115-115: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


116-116: Hard tabs
Column: 1

(MD010, no-hard-tabs)


117-117: Hard tabs
Column: 1

(MD010, no-hard-tabs)


119-119: Hard tabs
Column: 1

(MD010, no-hard-tabs)


121-121: Hard tabs
Column: 1

(MD010, no-hard-tabs)


123-123: Hard tabs
Column: 1

(MD010, no-hard-tabs)


125-125: Hard tabs
Column: 1

(MD010, no-hard-tabs)


135-135: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)


136-136: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)


137-137: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)


138-138: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)


139-139: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)

Comment on lines +115 to +117
```
@coderabbitai generate docstrings
```
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix hard tabs and specify code block language in command example.

The code block for the GitHub command uses hard tabs and does not specify a language. Replace hard tabs with spaces and specify text as the language for clarity.

Apply this diff to fix the issues:

-	```
-	@coderabbitai generate docstrings
-	```
+```text
+@coderabbitai generate docstrings
+```
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

115-115: Hard tabs
Column: 1

(MD010, no-hard-tabs)


115-115: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


116-116: Hard tabs
Column: 1

(MD010, no-hard-tabs)


117-117: Hard tabs
Column: 1

(MD010, no-hard-tabs)

Comment on lines +99 to +101
```
@coderabbitai Why do all of these functions need docstrings? Isn't it obvious enough what they do?
```
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix hard tabs and specify code block language in comment example.

The code block for the GitHub comment uses hard tabs and does not specify a language. Replace hard tabs with spaces and specify text as the language for clarity.

Apply this diff to fix the issues:

-	```
-	@coderabbitai Why do all of these functions need docstrings? Isn't it obvious enough what they do?
-	```
+```text
+@coderabbitai Why do all of these functions need docstrings? Isn't it obvious enough what they do?
+```
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

99-99: Hard tabs
Column: 1

(MD010, no-hard-tabs)


99-99: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


100-100: Hard tabs
Column: 1

(MD010, no-hard-tabs)


101-101: Hard tabs
Column: 1

(MD010, no-hard-tabs)

Comment on lines +61 to +73
```
# simple_utils.py - A tiny utility library

def reverse_string(text):
"""Reverses the characters in a string."""
return text[::-1]

def count_words(sentence):
return len(sentence.split())

def celsius_to_fahrenheit(celsius):
return (celsius * 9/5) + 32
```
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix hard tabs and specify code block language in code snippet.

The code block for simple_utils.py uses hard tabs for indentation, which is discouraged in markdown and flagged by markdownlint (MD010). Additionally, the code block does not specify a language, which is flagged by MD040. Replace hard tabs with spaces and specify python as the language for syntax highlighting.

Apply this diff to fix the issues:

-	```
-	# simple_utils.py - A tiny utility library
-
-	def reverse_string(text):
-			"""Reverses the characters in a string."""
-			return text[::-1]
-
-	def count_words(sentence):
-			return len(sentence.split())
-
-	def celsius_to_fahrenheit(celsius):
-			return (celsius * 9/5) + 32
-	```
+```python
+# simple_utils.py - A tiny utility library
+
+def reverse_string(text):
+    """Reverses the characters in a string."""
+    return text[::-1]
+
+def count_words(sentence):
+    return len(sentence.split())
+
+def celsius_to_fahrenheit(celsius):
+    return (celsius * 9/5) + 32
+```
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

61-61: Hard tabs
Column: 1

(MD010, no-hard-tabs)


61-61: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


62-62: Hard tabs
Column: 1

(MD010, no-hard-tabs)


64-64: Hard tabs
Column: 1

(MD010, no-hard-tabs)


65-65: Hard tabs
Column: 1

(MD010, no-hard-tabs)


66-66: Hard tabs
Column: 1

(MD010, no-hard-tabs)


68-68: Hard tabs
Column: 1

(MD010, no-hard-tabs)


69-69: Hard tabs
Column: 1

(MD010, no-hard-tabs)


71-71: Hard tabs
Column: 1

(MD010, no-hard-tabs)


72-72: Hard tabs
Column: 1

(MD010, no-hard-tabs)


73-73: Hard tabs
Column: 1

(MD010, no-hard-tabs)

@jmacdotorg jmacdotorg closed this Apr 16, 2025
@jmacdotorg
Copy link
Collaborator Author

Closing this due to workflow changes; will re-open elsewhere.

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