This is an automated email from the ASF dual-hosted git repository.

klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new a34b8c4c9 fix(plugins): add missed repoURL in ArgoCD plugin (#8712)
a34b8c4c9 is described below

commit a34b8c4c9d9c5af40aa709abdf64e18dd9021946
Author: Abdón Rodríguez <[email protected]>
AuthorDate: Thu Feb 12 10:00:20 2026 -0500

    fix(plugins): add missed repoURL in ArgoCD plugin (#8712)
---
 backend/plugins/argocd/api/remote_api.go     | 7 +++++++
 backend/plugins/argocd/models/application.go | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/backend/plugins/argocd/api/remote_api.go 
b/backend/plugins/argocd/api/remote_api.go
index 96f27fbf3..e34e70964 100644
--- a/backend/plugins/argocd/api/remote_api.go
+++ b/backend/plugins/argocd/api/remote_api.go
@@ -63,6 +63,9 @@ func listArgocdRemoteScopes(
                                } `json:"metadata"`
                                Spec struct {
                                        Project string `json:"project"`
+                                       Source  struct {
+                                               RepoURL string `json:"repoURL"`
+                                       } `json:"source"`
                                } `json:"spec"`
                        } `json:"items"`
                }
@@ -107,6 +110,9 @@ func listArgocdRemoteScopes(
                        } `json:"metadata"`
                        Spec struct {
                                Project string `json:"project"`
+                               Source  struct {
+                                       RepoURL string `json:"repoURL"`
+                               } `json:"source"`
                        } `json:"spec"`
                } `json:"items"`
        }
@@ -126,6 +132,7 @@ func listArgocdRemoteScopes(
                                Name:      item.Metadata.Name,
                                Namespace: item.Metadata.Namespace,
                                Project:   item.Spec.Project,
+                               RepoURL:   item.Spec.Source.RepoURL,
                        }
                        app.ConnectionId = connection.ID
 
diff --git a/backend/plugins/argocd/models/application.go 
b/backend/plugins/argocd/models/application.go
index fd15a098b..ad7c88770 100644
--- a/backend/plugins/argocd/models/application.go
+++ b/backend/plugins/argocd/models/application.go
@@ -31,7 +31,7 @@ type ArgocdApplication struct {
        Name           string     `gorm:"type:varchar(255);primaryKey" 
json:"name" mapstructure:"name" validate:"required"`
        Namespace      string     `gorm:"type:varchar(255)" json:"namespace" 
mapstructure:"namespace"`
        Project        string     `gorm:"type:varchar(255)" json:"project" 
mapstructure:"project"`
-       RepoURL        string     `gorm:"type:varchar(500)" json:"repoUrl" 
mapstructure:"repoUrl"`
+       RepoURL        string     `gorm:"type:varchar(500)" json:"repoURL" 
mapstructure:"repoURL"`
        Path           string     `gorm:"type:varchar(255)" json:"path" 
mapstructure:"path"`
        TargetRevision string     `gorm:"type:varchar(255)" 
json:"targetRevision" mapstructure:"targetRevision"`
        DestServer     string     `gorm:"type:varchar(255)" json:"destServer" 
mapstructure:"destServer"`

Reply via email to