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

abeizn 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 b3db54709 fix: gitlab projects search api (#6163)
b3db54709 is described below

commit b3db547091dc024cd5124c2345cc526f4e9798e0
Author: abeizn <[email protected]>
AuthorDate: Thu Sep 28 11:41:11 2023 +0800

    fix: gitlab projects search api (#6163)
---
 backend/plugins/gitlab/api/remote.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/backend/plugins/gitlab/api/remote.go 
b/backend/plugins/gitlab/api/remote.go
index 929dee42a..1f62fe665 100644
--- a/backend/plugins/gitlab/api/remote.go
+++ b/backend/plugins/gitlab/api/remote.go
@@ -160,9 +160,8 @@ func SearchRemoteScopes(input *plugin.ApiResourceInput) 
(*plugin.ApiResourceOutp
                        }
                        query := initialQuery(queryData)
                        query.Set("search", queryData.Search[0])
-                       query.Set("scope", "projects")
                        // request search
-                       res, err := apiClient.Get("search", query, nil)
+                       res, err := apiClient.Get("projects", query, nil)
                        if err != nil {
                                return nil, err
                        }

Reply via email to