likyh commented on code in PR #4397:
URL: 
https://github.com/apache/incubator-devlake/pull/4397#discussion_r1104195874


##########
backend/plugins/gitlab/api/remote.go:
##########
@@ -0,0 +1,381 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package api
+
+import (
+       "context"
+       "encoding/base64"
+       "encoding/json"
+       "fmt"
+       "net/http"
+       "net/url"
+       "strconv"
+
+       "github.com/apache/incubator-devlake/core/errors"
+       "github.com/apache/incubator-devlake/core/plugin"
+       "github.com/apache/incubator-devlake/helpers/pluginhelper/api"
+       "github.com/apache/incubator-devlake/plugins/gitlab/models"
+       "github.com/apache/incubator-devlake/plugins/gitlab/tasks"
+)
+
+type RemoteScopesChild struct {
+       Type     string      `json:"type"`
+       ParentId *string     `json:"parentId"`
+       Id       string      `json:"id"`
+       Data     interface{} `json:"data"`
+}
+
+type RemoteScopesOutput struct {
+       Children      []RemoteScopesChild `json:"children"`
+       NextPageToken string              `json:"nextPageToken"`
+}
+
+type PageData struct {
+       Page    int    `json:"page"`
+       PerPage int    `json:"per_page"`
+       Tag     string `json:"tag"`
+}
+
+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"`
+}
+
+const GitlabRemoteScoopesPerPage int = 100

Review Comment:
   typo



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to