Переглянути джерело

Added instance url to gitlab integration type

jnfrati 4 роки тому
батько
коміт
f5031c7d2c

+ 2 - 0
api/types/project_integration.go

@@ -168,6 +168,8 @@ type GitlabIntegration struct {
 
 
 	// The project that this integration belongs to
 	// The project that this integration belongs to
 	ProjectID uint `json:"project_id"`
 	ProjectID uint `json:"project_id"`
+
+	InstanceURL string `json:"instance_url"`
 }
 }
 
 
 type ListGitlabResponse []*GitlabIntegration
 type ListGitlabResponse []*GitlabIntegration

+ 4 - 3
internal/models/integrations/gitlab.go

@@ -28,8 +28,9 @@ type GitlabIntegration struct {
 
 
 func (gi *GitlabIntegration) ToGitlabIntegrationType() *types.GitlabIntegration {
 func (gi *GitlabIntegration) ToGitlabIntegrationType() *types.GitlabIntegration {
 	return &types.GitlabIntegration{
 	return &types.GitlabIntegration{
-		CreatedAt: gi.CreatedAt,
-		ID:        gi.ID,
-		ProjectID: gi.ProjectID,
+		CreatedAt:   gi.CreatedAt,
+		ID:          gi.ID,
+		ProjectID:   gi.ProjectID,
+		InstanceURL: gi.InstanceURL,
 	}
 	}
 }
 }