We're thrilled that you're interested in contributing to the Go client for Sanity! This document provides guidelines for contributions to the project.
This project and everyone participating in it is governed by the Code of Conduct. By participating, you are expected to uphold this code.
There are many ways you can contribute to our project:
-
Submitting Bugs and Feature Requests: Bugs and feature requests can be submitted through the project's issue tracker. Please use a clear and descriptive title and provide a comprehensive description of the issue.
-
Writing Code: We welcome your pull requests for bug fixes, features, and improvements. Here's how you can submit your code contributions:
- Fork the repository.
- Create a new branch for your feature (
git checkout -b feature/YourFeature
). - Write your code and add tests if applicable.
- Ensure your code adheres to the project's coding standards.
- Commit your changes (
git commit -am 'Add a new feature'
). - Push to your branch (
git push origin feature/YourFeature
). - Open a pull request against the main branch.
-
Documentation: Improving documentation, tutorials, or examples is a great way to contribute. Even small changes like fixing typos are appreciated.
-
Reviewing Pull Requests: If you're interested in reviewing pull requests, please leave constructive feedback on open pull requests.
Set up your development environment as per the instructions in the README. This will help you test your changes and ensure consistency with the project setup.
- Follow the idiomatic practices of the Go programming language.
- Write clean, maintainable, and efficient code.
- Add comments to your code where necessary to explain complex logic.
- Ensure existing tests pass, and add new tests for every new feature or bug fix.
- Ensure your code follows the coding guidelines and includes relevant tests.
- Update the README.md or other documentation with details of changes to the interface or functionality.
- Increase the version numbers in any examples files and the README.md to the new version that this Pull Request would represent.
- Your pull request will be reviewed by the maintainers, who may request changes or further clarification.
When reporting bugs or suggesting enhancements:
- Use a clear and descriptive title.
- Provide a step-by-step description of how to reproduce the problem.
- Explain the behavior you expected and what occurred instead.
- Include screenshots or animated GIFs if they help illustrate the issue.
If you have any questions or concerns, feel free to open an issue or reach out to the maintainers.
Thank you for contributing to the Go client for Sanity!