Thank you for your interest in contributing to apimgr! We welcome all forms of contribution.
If you find a bug or have a feature request, please submit it through GitHub Issues. When submitting, please include:
- Clear issue description
- Reproduction steps (for bugs)
- Expected behavior
- Actual behavior
- Environment information (OS, Go version, etc.)
- Fork the repository
- Clone your fork:
git clone https://github.com/your-username/apimgr.git - Create a branch:
git checkout -b feature/your-feature-name - Implement changes: Write code following the project's coding style
- Run tests:
go test ./... - Run lint:
golangci-lint run - Commit changes:
git commit -m "feat: add your feature" - Push branch:
git push origin feature/your-feature-name - Create PR: Create a Pull Request on GitHub
- Follow Go's official coding style (
go fmt) - Use
golintandstaticcheckfor code checking - Write clear comments, especially for public functions and structs
- Use camelCase naming, avoid abbreviations
- Write unit tests for new features
- Ensure test coverage is at least 80%
- Run
go test ./...to ensure all tests pass
- Update README.md for new commands or features
- Write detailed usage documentation for complex features
- Keep documentation consistent with code
Please follow the Contributor Covenant code of conduct.
- Go 1.21+
- golangci-lint
- goreleaser (for release)
# Run all tests
go test ./...
# Run lint checks
golangci-lint run
# Build binary
go build
# Clean build files
go cleanapimgr is licensed under the MIT License, and your contributions will automatically be covered by the same license.