Просмотр исходного кода

only list projects where gitlab user is member

Mohammed Nafees 4 лет назад
Родитель
Сommit
58c035f05f
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      api/server/handlers/project_integration/list_gitlab_repos.go

+ 2 - 1
api/server/handlers/project_integration/list_gitlab_repos.go

@@ -97,7 +97,8 @@ func (p *ListGitlabReposHandler) ServeHTTP(w http.ResponseWriter, r *http.Reques
 	}
 
 	giProjects, resp, err := client.Projects.ListProjects(&gitlab.ListProjectsOptions{
-		Simple: gitlab.Bool(true),
+		Simple:     gitlab.Bool(true),
+		Membership: gitlab.Bool(true),
 	})
 
 	if resp.StatusCode == http.StatusUnauthorized {