Contributing to CG SDK
Thank you for your interest in contributing to CG SDK! This document provides guidelines and instructions for contributing.
Code of Conduct
Please be respectful and constructive in all interactions with the community.
Getting Started
- Fork the repository
- Clone your fork:bash
git clone https://github.com/YOUR_USERNAME/cgate-sdk.git cd cgate-sdk - Install dependencies:bash
npm install - Create a new branch:bash
git checkout -b feature/your-feature-name
Development Workflow
Running Tests
bash
npm testBuilding the Project
bash
npm run buildRunning Documentation Locally
bash
npm run docs:devLinting and Formatting
bash
npm run lint
npm run formatSubmitting Changes
- Make your changes in your feature branch
- Write or update tests as needed
- Ensure all tests pass
- Update documentation if needed
- Commit your changes with a clear message:bash
git commit -m "feat: add new feature" - Push to your fork:bash
git push origin feature/your-feature-name - Create a Pull Request
Commit Message Guidelines
We follow the Conventional Commits specification:
feat:New featurefix:Bug fixdocs:Documentation changesstyle:Code style changes (formatting, etc.)refactor:Code refactoringtest:Test changeschore:Build process or auxiliary tool changes
Pull Request Guidelines
- Keep PRs focused on a single feature or fix
- Include tests for new functionality
- Update documentation as needed
- Ensure CI checks pass
- Respond to review feedback promptly
Reporting Issues
When reporting issues, please include:
- SDK version
- Node.js version
- Operating system
- Clear reproduction steps
- Expected vs actual behavior
- Error messages or logs
Questions?
Feel free to open a discussion or issue if you have questions!
License
By contributing, you agree that your contributions will be licensed under the MIT License.