Thank you for your interest in contributing to opencode-updater! This document outlines the process and standards for contributions.
- Ensure you have Rust installed (version 1.70+ recommended).
- Clone the repository:
git clone https://github.com/CodingInCarhartts/opencode-updater.git - Build the project:
cargo build - Run tests:
cargo test
- Follow the Rust API Guidelines and Rust Style Guide.
- Use
rustfmtfor code formatting:cargo fmt - Use
clippyfor linting:cargo clippy - Write unit and integration tests for new features.
- Keep functions small and focused; add documentation comments for public APIs.
- Fork the repository and create a feature branch from
main. - Make changes, ensuring tests pass and code is formatted/linted.
- Update
CHANGELOG.mdfor any user-facing changes. - Commit with clear, descriptive messages following Conventional Commits (e.g.,
feat(updater): Add checksum verification). - Open a pull request with a detailed description of changes and why they're needed.
- Address review feedback and ensure CI passes.
- Use GitHub Issues for bugs, features, or questions.
- Provide steps to reproduce, expected vs. actual behavior, and environment details (Rust version, OS).
By contributing, you agree to license your contributions under the MIT License.