- Never set
originto HTTPS. - Keep
originon SSH only:git@github.com:mekedron/wolt-cli.git. - If
originis changed, immediately restore it with:git remote set-url origin git@github.com:mekedron/wolt-cli.git
- Release tags must use
vprefix only:vX.Y.Z(for examplev0.2.0)
- Commit subjects must describe real code/content changes.
- Do not use placeholder subjects like
feat: release vX.Y.Zwithout change context.
- Before every
git push, run local CI-equivalent checks and tests. - Minimum required commands:
go mod downloadgo build ./...BUILD_VERSION="$(git describe --tags --always --dirty)" && go build -trimpath -ldflags "-s -w -X main.version=${BUILD_VERSION}" -o bin/wolt ./cmd/wolttest "$(./bin/wolt --version | tr -d '\r\n')" = "${BUILD_VERSION}"golangci-lint rungo test ./...go test -race ./...