You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by wa...@apache.org on 2023/03/29 07:44:55 UTC

[incubator-devlake] branch release-v0.16 updated: fix(gitlab): delete fields for groupresponse (#4808)

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

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


The following commit(s) were added to refs/heads/release-v0.16 by this push:
     new 86b301412 fix(gitlab): delete fields for groupresponse (#4808)
86b301412 is described below

commit 86b30141212cce6946a8bc76a3a04c428366382a
Author: Warren Chen <yi...@merico.dev>
AuthorDate: Wed Mar 29 15:44:50 2023 +0800

    fix(gitlab): delete fields for groupresponse (#4808)
---
 backend/plugins/gitlab/api/remote.go | 22 ++++++++--------------
 1 file changed, 8 insertions(+), 14 deletions(-)

diff --git a/backend/plugins/gitlab/api/remote.go b/backend/plugins/gitlab/api/remote.go
index eff56d13a..6aa1774e3 100644
--- a/backend/plugins/gitlab/api/remote.go
+++ b/backend/plugins/gitlab/api/remote.go
@@ -59,20 +59,14 @@ type PageData struct {
 }
 
 type GroupResponse struct {
-	Id                   int    `json:"id"`
-	WebUrl               string `json:"web_url"`
-	Name                 string `json:"name"`
-	Path                 string `json:"path"`
-	Description          string `json:"description"`
-	Visibility           string `json:"visibility"`
-	LfsEnabled           bool   `json:"lfs_enabled"`
-	AvatarUrl            string `json:"avatar_url"`
-	RequestAccessEnabled bool   `json:"request_access_enabled"`
-	FullName             string `json:"full_name"`
-	FullPath             string `json:"full_path"`
-	ParentId             *int   `json:"parent_id"`
-	LdapCN               string `json:"ldap_cn"`
-	LdapAccess           string `json:"ldap_access"`
+	Id          int    `json:"id" group:"id"`
+	WebUrl      string `json:"web_url"`
+	Name        string `json:"name" group:"name"`
+	Path        string `json:"path"`
+	Description string `json:"description"`
+	FullName    string `json:"full_name"`
+	FullPath    string `json:"full_path"`
+	ParentId    *int   `json:"parent_id"`
 }
 
 const GitlabRemoteScopesPerPage int = 100