Welcome to the DisCache project! We’re excited that you’re interested in contributing. Your contributions can make a huge difference to this project, whether by improving the code, updating documentation, reporting bugs, or suggesting features. Please follow the guidelines below to ensure a smooth contribution process.
- Code of Conduct
- Getting Started
- How to Contribute
- Development Guidelines
- Pull Request Process
- Reporting Issues
By participating in this project, you agree to abide by our Code of Conduct. Please be respectful and considerate of others.
- Fork the repository: Click the "Fork" button on the top-right of the repository page.
- Clone your fork:
git clone https://github.com/your-username/discache.git cd discache
- Install dependencies: Ensure you have Go installed. Use the following command to install project dependencies:
go mod tidy
- Run tests: Run the test suite to confirm everything is set up correctly:
go test ./...
- Feature Requests and Suggestions
- Open a new issue to propose new features or improvements.
- Provide as much detail as possible, including potential use cases.
- Reporting Bugs
- Check the issues page to ensure the bug hasn’t been reported yet.
- Open a bug report and include:
- Steps to reproduce
- Expected behavior
- Actual behavior
- Relevant logs or stack traces
- Submitting Code
- Look for open issues labeled with
help wanted
orgood first issue
. - Discuss your approach by commenting on the issue before starting work.
- Follow the Development Guidelines.
- Look for open issues labeled with
Code Style:
- Write clean, idiomatic Go code.
- Use
gofmt
to format your code before submitting changes.
Testing:
- Add unit tests for any new functionality.
- Ensure all tests pass before submitting a PR.
Documentation:
- Update the relevant sections in the
README.md
or create new documentation as necessary. - Add comments to your code where it improves clarity.
Commit Messages:
- Use clear and descriptive commit messages.
- Follow this format:
[Type] Short description Detailed explanation (if necessary).
- Examples of types:
feat
: A new featurefix
: A bug fixdocs
: Documentation updatestest
: Adding or updating tests
- Create a branch for your work:
git checkout -b feature/your-feature-name
- Make changes and commit your work:
git add . git commit -m "[Type] Add your commit message here"
- Push your branch to GitHub:
git push origin feature/your-feature-name
- Open a pull request on the main branch:
- Provide a clear description of the changes.
- Reference any related issues.
- Wait for feedback or approval:
- Be responsive to comments or suggestions during the review process.
When reporting an issue:
- Include a clear title and detailed description.
- Add relevant logs, screenshots, or steps to reproduce the problem.
- Indicate the version of DisCache you are using.
Thank you for contributing to Discache! Together, we can make this project robust and useful for everyone. ❤️