Files
PR-Helper/models/repository.go
T
wonder a6bd46db34
Deploy PR-Helper / deploy (push) Successful in 30s
feat: support private repo cloning with HTTP basic auth
- Add SSH URL detection with friendly prompt to use HTTPS instead
- Add private repo toggle (default off) with username/password fields
- Persist auth_type and credential in repositories table
- Pass stored credentials to PullRepo for authenticated pulls
- Incremental migration adds auth_type and credential columns
2026-06-21 14:58:12 +08:00

15 lines
401 B
Go

package models
import "time"
type Repository struct {
ID int64 `json:"id"`
URL string `json:"url"`
LocalPath string `json:"local_path"`
SizeBytes int64 `json:"size_bytes"`
ClonedAt time.Time `json:"cloned_at"`
LastUsed time.Time `json:"last_used"`
AuthType string `json:"auth_type"`
Credential string `json:"-"` // never expose in JSON responses
}