Thank you for your interest in contributing to the Inference Gateway Go SDK! This document provides guidelines and steps for contributing.
- Prerequisites:
- docker
- Clone and setup:
git clone https://github.com/inference-gateway/sdk
code sdk
- Click on the
Reopen in Container
button in the bottom right corner of the window.
- Create a new branch:
git checkout -b my-feature
- Make changes and test:
go test ./...
-
Add tests for new features or fix tests for refactoring and bug fixes.
-
Run linter:
go fmt ./...
- Commit changes:
git add .
git commit -m "Add my feature"
Types:
- feat: new feature
- fix: bug fix
- refactor: code change that neither fixes a bug nor adds a feature
- docs: documentation
- style: formatting, missing semi colons, etc; no code change
- test: adding missing tests
- chore: updating build tasks, package manager configs, etc; no production code change
- ci: changes to CI configuration files and scripts
- perf: code change that improves performance
- Ensure your PR:
- Passes all tests
- Updates documentation as needed
- Includes tests for new features
- Has a clear description of changes
- Merging to main triggers CI checks
- Manual release workflow can be triggered from Actions
- Version is determined by commit messages
- Changelog is automatically generated
- File an issue in GitHub Issues
- For questions about the API, consult the openapi.yaml specification