This is an automated email from the ASF dual-hosted git repository.
abeizn pushed a commit to branch fix#6161
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/fix#6161 by this push:
new c217be25f fix: gitlab projects search api
c217be25f is described below
commit c217be25fae3849d880fd4b602e8d5adb1a74cb0
Author: abeizn <[email protected]>
AuthorDate: Thu Sep 28 10:37:04 2023 +0800
fix: gitlab projects search api
---
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
}