We are thrilled that you want to contribute to Affinity Bot! This document will guide you through the contribution process, from reporting issues to submitting pull requests.
You can contribute in several ways:
- Reporting bugs.
- Suggesting new features.
- Submitting pull requests with fixes or improvements.
- Improving documentation.
We welcome all contributions, but please ensure that your pull requests align with the project's vision and coding standards.
If you encounter a bug, please open an issue and include:
- A clear title and description.
- Steps to reproduce the bug.
- Expected behavior.
- Relevant logs, screenshots, or code snippets, if available.
Feature suggestions are welcome! Please open an issue and provide:
- A detailed description of the feature.
- Use cases for the feature.
- Any screenshots, if applicable.
-
Fork the repository and create your branch from
main
:git checkout -b feature/new-feature
-
Commit your changes with clear and descriptive commit messages:
git commit -m "Add feature: implement pagination"
-
Push your branch to your forked repository:
git push origin feature/new-feature
-
Open a pull request:
- Ensure your pull request title and description are clear.
- Reference any related issues or feature requests.
- Tag reviewers, if necessary.
- Follow Rust’s official style guide.
- Run
cargo fmt
to format your code. - Run
cargo clippy
to maintain idiomatic code
We follow the Conventional Commits specification for writing commit messages:
feat: add new feature to API
fix: resolve issue with database connection
docs: update README with usage instructions