Skip to content
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

readme: fix formatting #23

Merged
merged 2 commits into from
Mar 27, 2024
Merged

readme: fix formatting #23

merged 2 commits into from
Mar 27, 2024

Conversation

gitcommitshow
Copy link
Owner

@gitcommitshow gitcommitshow commented Mar 26, 2024

Summary by CodeRabbit

  • Documentation
    • Improved section headers for better readability.
    • Clarified usage instructions for both CLI and code usage.
    • Reorganized content to improve the flow.
    • Added guidance on setting environment variables for user convenience.

Copy link
Contributor

coderabbitai bot commented Mar 26, 2024

Walkthrough

The recent update brings a fresh look to the README, enhancing readability and user guidance. Key improvements include a more intuitive structure, clearer instructions, and visual distinctions for different types of usage. Additionally, it introduces helpful tips on environment setup for users seeking a more streamlined experience.

Changes

File Changes
README.md - Section headers updated to ##
- Clarified usage instructions
- Reorganized content
- Added emphasis on CLI/code usage
- Added environment variables setup guidance

🐇✨
In the garden of code, where the documents bloom,
A README refreshed, dispelling the gloom.
Headers now twinkle, instructions clear as day,
With paths reorganized, confusion kept at bay.
A rabbit hopped by, with a tweak and a tune,
Leaving guidance behind, under the code moon.
🌙✨

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share

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>.
    • Generate unit-tests 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 tests 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 generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

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 as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • 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/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

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.

Review Status

Actionable comments generated: 1

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between ab32d6e and 82e307c.
Files selected for processing (1)
  • README.md (3 hunks)
Additional comments: 5
README.md (5)
  • 3-25: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [1-1]

The project name "open-community-kit" is correctly spelled, but consider capitalizing "Open Community Kit" when referring to it in the text for consistency and to match the formal naming convention.

  • 6-6: The change to the section headers from # to ## improves the document's hierarchical structure. This change is consistent with the PR's objectives and enhances readability.
  • 3-25: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [22-42]

The instructions for CLI usage are clear and concise. However, consider adding a brief explanation about what a "GitHub Personal Token" is and why it might be necessary for users unfamiliar with GitHub's API rate limits.

  • 42-42: The "Using code" section provides a clear example of how to use the package programmatically. Ensure that the provided code snippet is tested and works as expected.
  • 54-54: The guidance on setting environment variables for repeated usage is a valuable addition. It might be helpful to include examples of how to set these variables in different operating systems (e.g., Windows, macOS, Linux) for users who may be unfamiliar with the process.

README.md Outdated Show resolved Hide resolved
@gitcommitshow
Copy link
Owner Author

LGTM

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@gitcommitshow gitcommitshow merged commit 80b2f62 into main Mar 27, 2024
3 checks passed
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.

Review Status

Actionable comments generated: 3

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 82e307c and 0a7c019.
Files selected for processing (1)
  • README.md (3 hunks)
Additional comments: 6
README.md (6)
  • 6-6: The installation instructions are clear and concise.
  • 16-16: The usage section header has been appropriately updated to enhance document structure.
  • 18-18: Corrected the capitalization for "GitHub" in the section header, aligning with the official naming convention.
  • 22-22: The CLI usage instructions are clear and provide a good example of how to use the tool.
  • 42-42: The code usage instructions are well-structured and provide clear guidance on how to use the library programmatically.
  • 54-54: The guidance on setting environment variables for repeated usage is a valuable addition for users who frequently use the tool.

Comment on lines 3 to 25

[![test](https://github.com/gitcommitshow/open-community-kit/actions/workflows/test.yml/badge.svg)](https://github.com/gitcommitshow/open-community-kit/actions/workflows/test.yml)

# Installation
## Installation

```bash
npm install -g open-community-kit
```

You can use `npx` as well if you just want to test a CLI command

# Usage
----

## Create a leaderboard of Github contributors for all the repos of a user/org
(Contributor with highest # of contributions at the top)
## Usage

### Using CLI
### Leaderboard - GitHub Contributors

For all the repos of a user/org. Contributor with highest # of contributions at the top.

**Using CLI**

Run `open-community-kit yourGithubOrgName` from your terminal

Copy link
Contributor

Choose a reason for hiding this comment

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

📝 NOTE
This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [33-33]

The spelling of "GitHub" should be corrected to use a capital "H" to adhere to the official naming convention.

- Fetch data from Github APIs
+ Fetch data from GitHub APIs

📝 NOTE
This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [33-33]

There's a typo in "account". It should be corrected for clarity.

- organization/user accout
+ organization/user account

@@ -48,6 +51,8 @@
);
```

----

## Settings for repeated usage

If you are going to use this command frequently, you might not want to set organization name and personal token again and again. Instead, you can set following environment variables and then you don't need to pass those variables as CLI arguments or function parameters
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider adding the missing article "the" before "organization name" and "the" before "following environment variables" for grammatical correctness. Also, a comma before "and then" could improve readability.

- you might not want to set organization name and personal token again and again. Instead, you can set following environment variables and then you don't need to pass those variables as CLI arguments or function parameters
+ you might not want to set the organization name and personal token again and again. Instead, you can set the following environment variables, and then you don't need to pass those variables as CLI arguments or function parameters

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
If you are going to use this command frequently, you might not want to set organization name and personal token again and again. Instead, you can set following environment variables and then you don't need to pass those variables as CLI arguments or function parameters
If you are going to use this command frequently, you might not want to set the organization name and personal token again and again. Instead, you can set the following environment variables, and then you don't need to pass those variables as CLI arguments or function parameters

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.

1 participant