a6bd46db34
Deploy PR-Helper / deploy (push) Successful in 30s
- 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
15 lines
401 B
Go
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
|
|
}
|