Setup
You need Go at the version ingo.mod, golangci-lint v2 and git.
/auth login <provider> or put an API key in a .env file (see Installation). The Kubernetes operator is a separate Go module: run its tests inside operator/.
Making a change
- Branch from
main(developis an automatically synced mirror). - Write the change and its tests. A bug fix comes with a test that fails without it.
- Run
gofmt -w,make lintandgo test ./.... - Open a pull request against
mainwith a Conventional Commits title. Pull requests are squash-merged, and releases are cut by the maintainers with release-please.
Conventions
What CI checks
Every pull request runs a quality gate with 15 floors:- build and static analysis;
- coverage that may not drop, with 60% for new code;
- AI-generated-code smells;
- PR size;
- end-to-end tests;
- commit lint;
- complexity;
- secret scanning;
- i18n parity;
- CRD drift;
- license headers;
- API breaking changes;
- binary size;
- provider parity.
govulncheck, gosec, CodeQL, Trivy and dependency review) run too. The CONTRIBUTING.md table gives each floor’s threshold.
Reporting bugs
Open an issue on GitHub with:- the ChatCLI version (
chatcli --version), your operating system, the provider and model; - the steps to reproduce, the expected and the observed behavior;
- relevant logs (
LOG_LEVEL=debug), with secrets removed.
Architecture
How the packages and components fit together.
Plugin System
Build and sign a plugin.