4b96231b32
PR Ready Gate / clear-labels (pull_request) Successful in 2s
CI / test (pull_request) Successful in 15s
CI / review (anthropic--claude-4.6-sonnet, sonnet, SONNET_REVIEW_TOKEN) (pull_request) Successful in 28s
CI / review (gpt-5, security, SECURITY_REVIEW.md, SECURITY_REVIEW_TOKEN) (pull_request) Successful in 1m40s
CI / review (gpt-5, gpt, GPT_REVIEW_TOKEN) (pull_request) Successful in 1m48s
STRICT ALLOWLIST policy: Only packages explicitly listed in CONVENTIONS.md may be imported. No exceptions. ## Changes - Updates CONVENTIONS.md with strict allowlist language - Adds scripts/check-deps.sh to enforce the allowlist - Adds 'make check-deps' and 'make precommit' targets - CI will fail if any unapproved dependency is detected ## Approved packages - gopkg.in/yaml.v3 — YAML parsing - github.com/google/go-cmp — test comparisons ## Process for new dependencies 1. Open a PR that ONLY updates CONVENTIONS.md 2. Requires explicit approval from Aaron 3. After merge, a separate PR may use the package
27 lines
464 B
Makefile
27 lines
464 B
Makefile
.PHONY: build test test-integration lint clean coverage check-deps
|
|
|
|
build:
|
|
go build -o review-bot ./cmd/review-bot/
|
|
|
|
test:
|
|
go test ./...
|
|
|
|
test-integration:
|
|
go test -tags integration -v ./cmd/review-bot/
|
|
|
|
lint:
|
|
go vet ./...
|
|
|
|
check-deps:
|
|
@./scripts/check-deps.sh
|
|
|
|
clean:
|
|
rm -f review-bot
|
|
|
|
coverage:
|
|
go test -coverprofile=coverage.out ./...
|
|
go tool cover -func=coverage.out
|
|
|
|
# Precommit runs all checks required before pushing
|
|
precommit: check-deps lint test
|