All checks were successful
check / check (push) Successful in 56s
DBURL → DATA_DIR consolidation:
- Remove DBURL env var entirely; main DB now lives at {DATA_DIR}/webhooker.db
- database.go constructs DB path from config.DataDir, ensures dir exists
- Update DATA_DIR prod default from /data/events to /data
- Update all tests to use DataDir instead of DBURL
- Update Dockerfile: /data (not /data/events) for all SQLite databases
- Update README configuration table, Docker examples, architecture docs
Dead code removal:
- Remove unused IndexResponse struct (handlers/index.go)
- Remove unused TemplateData struct (handlers/handlers.go)
Stale comment cleanup:
- Remove TODO in server.go (DB cleanup handled by fx lifecycle)
- Fix nolint:golint → nolint:revive on ServerParams for consistency
- Clean up verbose middleware/routing comments in routes.go
- Fix TODO fan-out description (worker pool, not goroutine-per-target)
.gitignore fixes:
- Add data/ directory to gitignore
- Remove stale config.yaml entry (env-only config since rework)
44 lines
428 B
Plaintext
44 lines
428 B
Plaintext
# Binaries
|
|
*.exe
|
|
*.dll
|
|
*.so
|
|
*.dylib
|
|
bin/
|
|
/webhooker
|
|
|
|
# Test binary, built with `go test -c`
|
|
*.test
|
|
|
|
# Output of the go coverage tool
|
|
*.out
|
|
|
|
# Go vendor directory
|
|
vendor/
|
|
|
|
# IDE specific files
|
|
.idea/
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
.vscode/
|
|
|
|
# OS specific files
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Environment and config files
|
|
.env
|
|
.env.local
|
|
|
|
# Data directory (SQLite databases)
|
|
data/
|
|
*.db
|
|
*.sqlite
|
|
*.sqlite3
|
|
|
|
# Log files
|
|
*.log
|
|
|
|
# Temporary files
|
|
tmp/
|
|
temp/ |