feat: finalized git progress for clone, pull, push

https://github.com/crawlab-team/crawlab/issues/1485
This commit is contained in:
Marvin Zhang
2024-06-29 22:29:34 +08:00
parent 8ebfda7377
commit 1eb81b3f43
5 changed files with 109 additions and 34 deletions

View File

@@ -19,6 +19,7 @@ type GitV2 struct {
Spiders []SpiderV2 `json:"spiders,omitempty" bson:"-"`
Refs []vcs.GitRef `json:"refs" bson:"refs"`
RefsUpdatedAt time.Time `json:"refs_updated_at" bson:"refs_updated_at"`
CloneLogs []string `json:"clone_logs,omitempty" bson:"clone_logs"`
// settings
AutoPull bool `json:"auto_pull" bson:"auto_pull"`