We welcome contributions. Here’s how to get changes merged.
- Fork the repo and create a branch from
main. - Make your changes. Follow the existing code style and patterns.
- Run tests for the code you touch:
- Unit tests:
go test ./... - OSS acceptance tests (needs Grafana): see README – Running Tests, e.g.
make testacc-oss-docker.
- Unit tests:
- Run the linter before opening a PR:
make golangci-lint(runsgolangci-lint run ./... -vin Docker with the same version CI uses). If you have golangci-lint v2 installed locally, you can rungolangci-lint run ./... -vfrom the repo root instead. - Update generated docs if you changed resource/datasource schema or examples: run
go generate ./...(ormake docs). CI will fail ifdocs/is out of sync. - Open a pull request against
mainwith a clear description of the change.
For questions or discussion, use the Grafana #terraform Slack channel. The Grafana Slack is public—anyone can join at slack.grafana.com.