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

docs(contributing): add CONTRIBUTING.md with guidelines for contributors #571

Merged
merged 3 commits into from
Aug 14, 2024

Conversation

dylanpulver
Copy link
Collaborator

@dylanpulver dylanpulver commented Aug 14, 2024

Description

This pull request adds a CONTRIBUTING.md file to the repository, outlining the guidelines for contributing to the SafetyCLI project. The document provides details on how to report bugs, suggest enhancements, improve documentation, and submit code changes. It also includes information on the development setup, running tests, and the pull request process.

Key Changes:

  • Added a CONTRIBUTING.md file with sections on how to contribute, development setup, and pull request process.
  • Defined labels for issues such as bug, enhancement, documentation, and more.
  • Provided a link to the project’s Code of Conduct and License.
  • Updated the documentation link to point to the correct location: https://docs.safetycli.com/safety-docs.
  • Included instructions for running tests and guidelines for commit messages based on Conventional Commits.

Checklist:

  • The contributing guidelines have been thoroughly reviewed.
  • Links and labels are correctly set and functional.
  • The document follows the project's style and tone.

Related Issues

N/A

Additional Notes

This document aims to provide a clear and structured way for contributors to participate in the project. Any feedback or further suggestions to improve the guidelines are welcome.

Summary by CodeRabbit

  • New Features
    • Introduced a comprehensive CONTRIBUTING.md file to guide users on how to contribute to the SafetyCLI project.
    • Included sections on bug reporting, enhancement suggestions, documentation improvements, and development setup.
    • Established guidelines for adherence to a code of conduct and commit message formatting.

Copy link

coderabbitai bot commented Aug 14, 2024

Walkthrough

This change introduces a new CONTRIBUTING.md file for the SafetyCLI project, providing clear and structured guidelines for contributors. The document covers essential topics such as bug reporting, enhancement suggestions, documentation improvement, and development setup. By promoting collaboration and outlining expectations for contributions, the guidelines aim to enhance the project's quality and maintainability.

Changes

File Change Summary
CONTRIBUTING.md Added comprehensive guidelines for contributions, detailing bug reporting, enhancement suggestions, documentation improvements, development setup, and the pull request process.

Poem

In the garden where we play,
A guide for friends has found its way.
Hop and share, let ideas bloom,
Together we’ll chase away the gloom.
With every line, our project grows,
Join the dance, as collaboration flows! 🐰✨


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 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 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 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 as 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.

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

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

@davidlacho davidlacho left a comment

Choose a reason for hiding this comment

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

💅🏻


### Reporting Bugs

If you find a bug, please report it by opening a [GitHub issue](https://github.com/pyupio/safety/issues). When reporting a bug, please include:

Choose a reason for hiding this comment

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

Is it worth linking to our bug bounty page?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For sure! I just added that in!

Copy link

@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: 0

Outside diff range, codebase verification and nitpick comments (4)
CONTRIBUTING.md (4)

3-3: Consider rephrasing for clarity.

The phrase "grateful for your help in making SafetyCLI better" could be improved for style. Consider rephrasing to: "grateful for your contributions to improving SafetyCLI."

- We welcome contributions from everyone and are grateful for your help in making SafetyCLI better.
+ We welcome contributions from everyone and are grateful for your contributions to improving SafetyCLI.
Tools
LanguageTool

[style] ~3-~3: The wording of this phrase can be improved.
Context: ...ryone and are grateful for your help in making SafetyCLI better. ## Table of Contents - [Contributing ...

(MAKE_STYLE_BETTER)


34-34: Remove loose punctuation.

There is a loose punctuation mark after "Critical". Consider removing it for consistency.

- `Critical`: Issues that break core functionality or pose significant security vulnerabilities.
+ `Critical`: Issues that break core functionality or pose significant security vulnerabilities
Tools
LanguageTool

[uncategorized] ~34-~34: Loose punctuation mark.
Context: ... that needs to be resolved. - Critical: Issues that break core functionality or...

(UNLIKELY_OPENING_PUNCTUATION)


35-35: Remove loose punctuation.

There is a loose punctuation mark after "Low". Consider removing it for consistency.

- `High`, `Medium`, `Low`: Significance of bugs affecting users.
+ `High`, `Medium`, `Low`: Significance of bugs affecting users
Tools
LanguageTool

[uncategorized] ~35-~35: Loose punctuation mark.
Context: ...icant security vulnerabilities. - High, Medium, Low: Significance of bugs a...

(UNLIKELY_OPENING_PUNCTUATION)


69-69: Remove multiple spaces after hash in heading.

There are multiple spaces after the hash in the "Development Setup" heading. Consider removing the extra spaces.

- ###  Development Setup
+ ### Development Setup
Tools
Markdownlint

69-69: null
Multiple spaces after hash on atx style heading

(MD019, no-multiple-space-atx)

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 8311c1d and 056dcbc.

Files selected for processing (1)
  • CONTRIBUTING.md (1 hunks)
Additional context used
LanguageTool
CONTRIBUTING.md

[style] ~3-~3: The wording of this phrase can be improved.
Context: ...ryone and are grateful for your help in making SafetyCLI better. ## Table of Contents - [Contributing ...

(MAKE_STYLE_BETTER)


[uncategorized] ~34-~34: Loose punctuation mark.
Context: ... that needs to be resolved. - Critical: Issues that break core functionality or...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~35-~35: Loose punctuation mark.
Context: ...icant security vulnerabilities. - High, Medium, Low: Significance of bugs a...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~61-~61: Loose punctuation mark.
Context: ...other contributors. - good first issue: Highlights issues that are suitable for...

(UNLIKELY_OPENING_PUNCTUATION)

Markdownlint
CONTRIBUTING.md

69-69: null
Multiple spaces after hash on atx style heading

(MD019, no-multiple-space-atx)

Additional comments not posted (4)
CONTRIBUTING.md (4)

5-20: Table of Contents is well-structured.

The table of contents is comprehensive and aids in easy navigation through the document.


21-62: Contribution guidelines are clear and informative.

The guidelines for reporting bugs, suggesting enhancements, and improving documentation are well-structured and clear.

Tools
LanguageTool

[uncategorized] ~34-~34: Loose punctuation mark.
Context: ... that needs to be resolved. - Critical: Issues that break core functionality or...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~35-~35: Loose punctuation mark.
Context: ...icant security vulnerabilities. - High, Medium, Low: Significance of bugs a...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~61-~61: Loose punctuation mark.
Context: ...other contributors. - good first issue: Highlights issues that are suitable for...

(UNLIKELY_OPENING_PUNCTUATION)


63-87: Getting Started section is clear and helpful.

The instructions for setting up the development environment and running tests are clear and helpful.

Tools
Markdownlint

69-69: null
Multiple spaces after hash on atx style heading

(MD019, no-multiple-space-atx)


88-109: Pull Request Process and License sections are well-defined.

The guidelines for commit messages, merging changes, and licensing are clear and well-defined.

Copy link

@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: 1

Outside diff range, codebase verification and nitpick comments (1)
CONTRIBUTING.md (1)

3-3: Consider rephrasing for style improvement.

The phrase "are grateful for your help in making SafetyCLI better" could be reworded for better style. Consider using: "and appreciate your efforts to enhance SafetyCLI."

- and are grateful for your help in making SafetyCLI better.
+ and appreciate your efforts to enhance SafetyCLI.
Tools
LanguageTool

[style] ~3-~3: The wording of this phrase can be improved.
Context: ...ryone and are grateful for your help in making SafetyCLI better. ## Table of Contents - [Contributing ...

(MAKE_STYLE_BETTER)

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 056dcbc and 16e89ee.

Files selected for processing (1)
  • CONTRIBUTING.md (1 hunks)
Additional context used
LanguageTool
CONTRIBUTING.md

[style] ~3-~3: The wording of this phrase can be improved.
Context: ...ryone and are grateful for your help in making SafetyCLI better. ## Table of Contents - [Contributing ...

(MAKE_STYLE_BETTER)


[uncategorized] ~36-~36: Loose punctuation mark.
Context: ... that needs to be resolved. - Critical: Issues that break core functionality or...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~37-~37: Loose punctuation mark.
Context: ...icant security vulnerabilities. - High, Medium, Low: Significance of bugs a...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~63-~63: Loose punctuation mark.
Context: ...other contributors. - good first issue: Highlights issues that are suitable for...

(UNLIKELY_OPENING_PUNCTUATION)

Markdownlint
CONTRIBUTING.md

71-71: null
Multiple spaces after hash on atx style heading

(MD019, no-multiple-space-atx)

Additional comments not posted (2)
CONTRIBUTING.md (2)

90-109: Well-structured Pull Request Process section.

The guidelines for commit messages and merging changes are clear and adhere to the Conventional Commits specification.


110-111: Clear License section.

The licensing information is concise and provides necessary legal clarity for contributors.

CONTRIBUTING.md Outdated Show resolved Hide resolved
Copy link

@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: 0

Outside diff range, codebase verification and nitpick comments (2)
CONTRIBUTING.md (2)

3-3: Consider improving the wording for clarity.

The phrase "and are grateful for your help in making SafetyCLI better" can be rephrased for better engagement.

- First off, thanks for taking the time to contribute! We welcome contributions from everyone and are grateful for your help in making SafetyCLI better.
+ First off, thank you for taking the time to contribute! We welcome contributions from everyone and appreciate your efforts to improve SafetyCLI.
Tools
LanguageTool

[style] ~3-~3: The wording of this phrase can be improved.
Context: ...ryone and are grateful for your help in making SafetyCLI better. ## Table of Contents - [Contributing ...

(MAKE_STYLE_BETTER)


21-55: Clear guidelines for contributing.

This section provides clear and useful guidelines for reporting bugs, suggesting enhancements, and improving documentation.

Additionally, consider addressing the loose punctuation marks in lines 36, 37, and 63 as suggested by static analysis tools.

- - `Critical`: Issues that break core functionality or pose significant security vulnerabilities.
- - `High`, `Medium`, `Low`: Significance of bugs affecting users.
- - `good first issue`: Highlights issues that are suitable for first-time contributors.
+ - `Critical`: Issues that break core functionality or pose significant security vulnerabilities.
+ - `High`, `Medium`, `Low`: Significance of bugs affecting users.
+ - `good first issue`: Highlights issues that are suitable for first-time contributors.
Tools
LanguageTool

[uncategorized] ~36-~36: Loose punctuation mark.
Context: ... that needs to be resolved. - Critical: Issues that break core functionality or...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~37-~37: Loose punctuation mark.
Context: ...icant security vulnerabilities. - High, Medium, Low: Significance of bugs a...

(UNLIKELY_OPENING_PUNCTUATION)

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 16e89ee and 2a4a4f7.

Files selected for processing (1)
  • CONTRIBUTING.md (1 hunks)
Additional context used
LanguageTool
CONTRIBUTING.md

[style] ~3-~3: The wording of this phrase can be improved.
Context: ...ryone and are grateful for your help in making SafetyCLI better. ## Table of Contents - [Contributing ...

(MAKE_STYLE_BETTER)


[uncategorized] ~36-~36: Loose punctuation mark.
Context: ... that needs to be resolved. - Critical: Issues that break core functionality or...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~37-~37: Loose punctuation mark.
Context: ...icant security vulnerabilities. - High, Medium, Low: Significance of bugs a...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~63-~63: Loose punctuation mark.
Context: ...other contributors. - good first issue: Highlights issues that are suitable for...

(UNLIKELY_OPENING_PUNCTUATION)

Additional comments not posted (4)
CONTRIBUTING.md (4)

5-20: Table of Contents is well-organized.

The table of contents is comprehensive and correctly linked to all sections.


65-89: Informative "Getting Started" section.

This section provides clear instructions on the Code of Conduct, Development Setup, and Running Tests.

Ensure that the existing comment about removing extra spaces in the heading "Development Setup" is addressed.


90-109: Clear "Pull Request Process" section.

The section clearly outlines the commit message format and the merging process, adhering to the Conventional Commits specification.


110-111: Concise "License" section.

The section clearly states the licensing terms for contributions.

@dylanpulver dylanpulver merged commit 912da56 into main Aug 14, 2024
12 checks passed
@dylanpulver dylanpulver deleted the readme/contributing branch August 14, 2024 18:11
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