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

abeizn pushed a commit to branch release-v0.19
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/release-v0.19 by this push:
     new c633e744a fix: gitlab projects search api (#6163) (#6164)
c633e744a is described below

commit c633e744ae59804746a76ae42c316f4c6ccf3729
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Sep 28 11:48:36 2023 +0800

    fix: gitlab projects search api (#6163) (#6164)
    
    Co-authored-by: abeizn <[email protected]>
---
 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