1.8 KiB
1.8 KiB
Contributing to GitPulse
Thank you for your interest in contributing to GitPulse! This document provides guidelines and instructions for contributing.
Getting Started
Prerequisites
- Rust 1.70 or later
- Cargo 1.70 or later
- Git
Development Setup
-
Fork the repository on GitHub
-
Clone your fork locally:
git clone https://github.com/YOUR_USERNAME/gitpulse.git cd gitpulse -
Set up the development environment:
cargo build cargo test -
Create a branch for your changes:
git checkout -b feature/your-feature-name
Coding Standards
Code Style
- Follow Rust standard formatting with
cargo fmt - Run
cargo clippyto check for common issues - Ensure all warnings are resolved
Documentation
- Add docstrings to all public functions and types
- Update README.md for user-facing changes
- Add inline comments for complex logic
Testing
- Write unit tests for new functionality
- Ensure all tests pass before submitting
- Aim for meaningful test coverage
Submitting Changes
-
Commit your changes with a clear commit message:
git commit -m "Add feature: brief description" -
Push to your fork:
git push origin feature/your-feature-name -
Create a Pull Request against the main branch
-
Address any feedback from reviewers
Reporting Issues
When reporting issues, please include:
- A clear description of the problem
- Steps to reproduce the issue
- Expected behavior vs actual behavior
- System information (OS, Rust version, etc.)
- Any relevant error messages
Code of Conduct
This project follows the Contributor Covenant Code of Conduct. By participating, you are expected to uphold this code.
Questions?
If you have questions, feel free to open an issue for discussion.