Skip to content

Latest commit

 

History

History
88 lines (60 loc) · 2.51 KB

CONTRIBUTING.md

File metadata and controls

88 lines (60 loc) · 2.51 KB

Contributing to this Project

Thank you for your interest in contributing to this project! These guidelines will help you collaborate effectively and ensure the project grows in an organized manner.

Types of Contributions

You can contribute in the following ways:

  • Reporting Issues: If you find a bug or have a suggestion, open an issue.
  • Proposing New Features: Share your ideas by creating an issue to discuss them before implementing significant changes.
  • Contributing Code: Fix bugs, add new features, or improve the documentation.
  • Improving Documentation: Keep code comments and documentation files clear and up to date.

Setting up the Development Environment

  1. Ensure you have Rust and Cargo installed.
  2. Clone the repository:
git clone https://github.com/Wilovy09/Grow.git
cd Grow
  1. Build the project:
cargo build

Contribution Workflow

  1. Fork the repository.
  2. Create a descriptive branch:
git checkout -b fix-error-message
  1. Make your changes: Ensure your code follows the Rust conventions and passes the linters:
cargo fmt
cargo clippy
  1. Write commits following the Conventional Commits standard. Examples:

    • fix: corrected input validation error
    • feat: added file upload functionality
    • docs: updated README with additional instructions
  2. Push your changes to your fork:

git push origin fix-error-message
  1. Open a Pull Request: From your fork, create a PR to the main branch of this repository. Be sure to clearly describe the changes you made.

Code Standards

  • Follow Rust best practices using rustfmt and clippy.
  • Write tests for any new changes in tests/.
  • Keep your code modular and easy to read.

Commit Standards

We use the Conventional Commits standard. Here are the most common types:

  • feat: For new features.
  • fix: For bug fixes.
  • docs: For documentation changes.
  • style: For code formatting changes (without affecting logic).
  • refactor: For code changes that neither fix a bug nor add a feature.
  • test: For adding or correcting tests.
  • chore: For updates to tools or auxiliary tasks.

Example commit:

git commity -m "feat: added support for multiple users"

Pull Request Review

  • Contributions will be reviewed by a team member.
  • If needed, you’ll be asked to make adjustments before the PR is approved.
  • Use descriptive labels and reference related issues (e.g., Fixes #123).