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

fixed the contributors readme issue. #77

Merged
merged 4 commits into from
Oct 5, 2024

Conversation

Sapna127
Copy link
Contributor

@Sapna127 Sapna127 commented Oct 4, 2024

Added the workflow for fetching the contributors to readme

Summary by CodeRabbit

  • New Features

    • Introduced an automated workflow to update the contributors list in the README.
    • Added a new "Open Source Programs" section highlighting project affiliations.
    • Enhanced the "Contributors" section with a new table format for better visibility.
  • Documentation

    • Updated the README.md with structural improvements and new sections for clarity.
    • Rephrased the introduction and added a "Support" section inviting sponsorship.

Copy link

vercel bot commented Oct 4, 2024

@github-actions[bot] is attempting to deploy a commit to the bunty's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

coderabbitai bot commented Oct 4, 2024

Warning

Rate limit exceeded

@RamakrushnaBiswal has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 22 minutes and 56 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Files that changed from the base of the PR and between d5be656 and 525bdfe.

Walkthrough

A new GitHub Actions workflow has been added to automate the update of the contributors list in the README file, triggered by pushes to the main and other branches. Additionally, the README.md file has undergone several structural and content updates, including the introduction of a "Project Overview" section, rephrasing of existing content, and enhancements to the "Contributors" section with a new table format. The document now also includes a "Support" section and highlights the project's participation in the GirlScript Summer of Code 2024 initiative.

Changes

File Change Summary
.github/workflows/contributors.yml New GitHub Actions workflow added to automate updating the contributors list in the README file.
README.md Structural and content updates including new sections, rephrased content, and enhanced contributors table.

Poem

In the garden of code, we hop and play,
With contributors shining, bright as the day.
A README refreshed, now clear and bright,
Join us on Discord, share in the light!
With features galore, our project takes flight,
Together we build, our future's in sight! 🐇✨


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>, 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 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

github-actions bot commented Oct 4, 2024

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@RamakrushnaBiswal
Copy link
Owner

@Sapna127 did you make it by your own

Copy link

gitguardian bot commented Oct 4, 2024

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

Since your pull request originates from a forked repository, GitGuardian is not able to associate the secrets uncovered with secret incidents on your GitGuardian dashboard.
Skipping this check run and merging your pull request will create secret incidents on your GitGuardian dashboard.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
14033809 Triggered MongoDB Credentials d5be656 backend/.env View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

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

🧹 Outside diff range and nitpick comments (3)
.github/workflows/contributors.yml (1)

1-18: Address YAML formatting issues.

There are some minor YAML formatting issues that should be addressed to improve readability and consistency.

  1. Fix the indentation on line 12 (and subsequent lines) to use 2 spaces instead of 10:
permissions:
  contents: write
  pull-requests: write
  1. Add a newline character at the end of the file.

These changes will resolve the warnings from the YAML linter and improve the overall structure of the file.

🧰 Tools
🪛 yamllint

[warning] 12-12: wrong indentation: expected 12 but found 10

(indentation)


[error] 18-18: no new line character at the end of file

(new-line-at-end-of-file)

README.md (2)

Line range hint 46-85: LGTM with suggestion: Getting Started, Contributing, and Open Source Programs

The improvements to the Getting Started and Contributing sections enhance the onboarding process for new contributors. The addition of the Open Source Programs section effectively highlights the project's participation in GSSoC 2024 Extended.

However, the Mentors section currently lacks specific information:

## 🌟 Mentors
Special thanks to our amazing mentors who are guiding this project! 🙌

- **[to be annouce]** - Full Stack Developer

Consider updating this section with actual mentor information when available, or remove it temporarily if the information is not yet finalized.

🧰 Tools
🪛 Markdownlint

88-88: Column: 1
Hard tabs

(MD010, no-hard-tabs)


89-89: Column: 1
Hard tabs

(MD010, no-hard-tabs)


132-132: Column: 1
Hard tabs

(MD010, no-hard-tabs)


133-133: Column: 1
Hard tabs

(MD010, no-hard-tabs)


162-162: Column: 1
Hard tabs

(MD010, no-hard-tabs)


163-163: Column: 1
Hard tabs

(MD010, no-hard-tabs)


86-165: LGTM with formatting suggestions: Contributors Section

The new table format for displaying contributors is a great improvement, aligning well with the PR objective of adding a workflow for fetching contributors. It provides a visually appealing way to recognize project contributors.

However, there are some minor formatting issues:

  1. Replace hard tabs with spaces for consistent indentation across different editors.
  2. Ensure consistent indentation throughout the table structure.

Here's a snippet of how the beginning of the table should look with these changes:

<!-- readme: contributors -start -->
<table>
    <tbody>
        <tr>
            <td align="center">
                <a href="https://github.com/RamakrushnaBiswal">
                    <img src="https://avatars.githubusercontent.com/u/125277258?v=4" width="100;" alt="RamakrushnaBiswal"/>
                    <br />
                    <sub><b>Ramakrushna Biswal</b></sub>
                </a>
            </td>
            <!-- ... other contributors ... -->
        </tr>
    </tbody>
</table>
<!-- readme: contributors -end -->

Apply this indentation style throughout the contributors table for consistency.

🧰 Tools
🪛 Markdownlint

88-88: Column: 1
Hard tabs

(MD010, no-hard-tabs)


89-89: Column: 1
Hard tabs

(MD010, no-hard-tabs)


132-132: Column: 1
Hard tabs

(MD010, no-hard-tabs)


133-133: Column: 1
Hard tabs

(MD010, no-hard-tabs)


162-162: Column: 1
Hard tabs

(MD010, no-hard-tabs)


163-163: Column: 1
Hard tabs

(MD010, no-hard-tabs)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between bfd9562 and d5be656.

📒 Files selected for processing (2)
  • .github/workflows/contributors.yml (1 hunks)
  • README.md (1 hunks)
🧰 Additional context used
🪛 yamllint
.github/workflows/contributors.yml

[warning] 12-12: wrong indentation: expected 12 but found 10

(indentation)


[error] 18-18: no new line character at the end of file

(new-line-at-end-of-file)

🪛 Markdownlint
README.md

88-88: Column: 1
Hard tabs

(MD010, no-hard-tabs)


89-89: Column: 1
Hard tabs

(MD010, no-hard-tabs)


132-132: Column: 1
Hard tabs

(MD010, no-hard-tabs)


133-133: Column: 1
Hard tabs

(MD010, no-hard-tabs)


162-162: Column: 1
Hard tabs

(MD010, no-hard-tabs)


163-163: Column: 1
Hard tabs

(MD010, no-hard-tabs)

🔇 Additional comments (4)
README.md (4)

Line range hint 1-30: LGTM: Introduction and Project Overview

The changes to the introduction and the addition of the Project Overview section enhance the README by providing clearer context about the PlayCafe project and its goals. These improvements align well with the PR objectives.

🧰 Tools
🪛 Markdownlint

88-88: Column: 1
Hard tabs

(MD010, no-hard-tabs)


89-89: Column: 1
Hard tabs

(MD010, no-hard-tabs)


132-132: Column: 1
Hard tabs

(MD010, no-hard-tabs)


133-133: Column: 1
Hard tabs

(MD010, no-hard-tabs)


162-162: Column: 1
Hard tabs

(MD010, no-hard-tabs)


163-163: Column: 1
Hard tabs

(MD010, no-hard-tabs)


Line range hint 31-45: LGTM: Features and Tech Stack

The Features and Tech Stack sections are well-maintained, providing clear information about the project's capabilities and technologies used. The minor formatting improvements in the Features section enhance readability.

🧰 Tools
🪛 Markdownlint

88-88: Column: 1
Hard tabs

(MD010, no-hard-tabs)


89-89: Column: 1
Hard tabs

(MD010, no-hard-tabs)


132-132: Column: 1
Hard tabs

(MD010, no-hard-tabs)


133-133: Column: 1
Hard tabs

(MD010, no-hard-tabs)


162-162: Column: 1
Hard tabs

(MD010, no-hard-tabs)


163-163: Column: 1
Hard tabs

(MD010, no-hard-tabs)


Line range hint 166-172: LGTM: Support Section

The addition of the Support section is a great way to encourage community engagement and project sustainability. It provides clear calls-to-action for users to become sponsors and star the repository.

🧰 Tools
🪛 Markdownlint

88-88: Column: 1
Hard tabs

(MD010, no-hard-tabs)


89-89: Column: 1
Hard tabs

(MD010, no-hard-tabs)


132-132: Column: 1
Hard tabs

(MD010, no-hard-tabs)


133-133: Column: 1
Hard tabs

(MD010, no-hard-tabs)


162-162: Column: 1
Hard tabs

(MD010, no-hard-tabs)


163-163: Column: 1
Hard tabs

(MD010, no-hard-tabs)


Line range hint 1-172: Overall assessment: Excellent improvements to the README

@Sapna127, great job on enhancing the README! The changes you've made, particularly the addition of the contributors table, align perfectly with the PR objectives and significantly improve the document's informativeness and visual appeal.

To address @RamakrushnaBiswal's question: While the implementation of the contributors table is excellent, it would be helpful to clarify whether you created this workflow yourself or if you adapted it from existing resources. This information could be valuable for future contributors and maintainers.

A few minor suggestions for further improvement:

  1. Update the Mentors section with specific information when available.
  2. Address the formatting issues in the Contributors section by replacing hard tabs with spaces and ensuring consistent indentation.

Once these small adjustments are made, this PR will be ready for merge. Great work on enhancing the project documentation!

🧰 Tools
🪛 Markdownlint

88-88: Column: 1
Hard tabs

(MD010, no-hard-tabs)


89-89: Column: 1
Hard tabs

(MD010, no-hard-tabs)


132-132: Column: 1
Hard tabs

(MD010, no-hard-tabs)


133-133: Column: 1
Hard tabs

(MD010, no-hard-tabs)


162-162: Column: 1
Hard tabs

(MD010, no-hard-tabs)


163-163: Column: 1
Hard tabs

(MD010, no-hard-tabs)

Comment on lines +1 to +5
on:
push:
branches:
- main
- "*"
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Consider refining the workflow trigger.

The current trigger configuration runs the workflow on every push to any branch, which might be unnecessary for branches other than main.

Consider limiting the workflow to run only on pushes to the main branch and pull requests targeting main:

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

This change would reduce unnecessary workflow runs while still updating the contributors list when changes are merged into the main branch.

Comment on lines +7 to +13
jobs:
contrib-readme-job:
runs-on: ubuntu-latest
name: A job to automate contrib in readme
permissions:
contents: write
pull-requests: write
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Job configuration looks good, but consider adding a concurrency group.

The job configuration and permissions are correctly set up. However, to prevent concurrent runs of this workflow, which could lead to conflicts when updating the README, consider adding a concurrency group.

Add a concurrency configuration to the workflow:

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  contrib-readme-job:
    # ... (rest of the job configuration)

This addition will ensure that only one instance of this workflow runs at a time for each branch, canceling any in-progress runs if a new commit is pushed.

🧰 Tools
🪛 yamllint

[warning] 12-12: wrong indentation: expected 12 but found 10

(indentation)

Comment on lines +14 to +18
steps:
- name: Contribute List
uses: akhilmhdh/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Action configuration is correct, but consider adding error handling.

The step using the contributors-readme-action is correctly configured. However, it's a good practice to add error handling and provide more information about the step's purpose.

Enhance the step configuration:

steps:
  - name: Checkout repository
    uses: actions/checkout@v2

  - name: Update Contributors List in README
    uses: akhilmhdh/[email protected]
    env:
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    continue-on-error: true

  - name: Check for changes
    id: git-check
    run: |
      git diff --exit-code || echo "changes=true" >> $GITHUB_OUTPUT

  - name: Commit changes
    if: steps.git-check.outputs.changes == 'true'
    run: |
      git config --local user.email "[email protected]"
      git config --local user.name "GitHub Action"
      git add README.md
      git commit -m "docs: update contributors list"
      git push

These changes add error handling, explicitly checkout the repository, and only commit changes if the README was actually modified.

🧰 Tools
🪛 yamllint

[error] 18-18: no new line character at the end of file

(new-line-at-end-of-file)

@Sapna127
Copy link
Contributor Author

Sapna127 commented Oct 4, 2024

@Sapna127 did you make it by your own

yes.. I refered this - https://github.com/marketplace/actions/contribute-list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation gssoc-ext gssoc-extd program level1 for 10 points
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants