Requirements: Go 1.22+
git clone https://github.com/itdar/shield-agent.git
cd shield-agent
go build -o shield-agent ./cmd/shield-agentgo test ./...For verbose output:
go test -v ./...| Type | Pattern |
|---|---|
| Feature | feat/description |
| Bugfix | fix/description |
| Chore | chore/description |
Never push directly to main.
Format: type(scope): description
Types: feat, fix, docs, refactor, test, chore, style, perf
Examples:
feat(proxy): add X-Forwarded-For header support
fix(auth): handle expired token edge case
test(proxy): add concurrent request tests
Rules:
- Description in imperative mood, max 72 characters
- English only
- Include a body explaining why when the change is non-obvious
- Fork and create a branch from
main - Make your changes and ensure all checks pass locally:
go build ./... go test ./... go vet ./... - Open a PR against
mainwith a title matching the commit convention - Summarize changes in bullet points in the PR description
- Link any related issues
CI will run build, test, lint, and vet automatically.
- Follow existing patterns in the codebase
- Comments in English
- No dead code, debug prints, or TODOs left in committed code
- Keep functions focused and small
- Error messages should be lowercase and not end with punctuation
Open a GitHub Issue with:
- Bug: steps to reproduce, expected vs actual behavior, Go version and OS
- Feature: use case description and proposed behavior
Check existing issues before opening a new one.