Explorar el Código

only list projects where gitlab user is member

Mohammed Nafees hace 4 años
padre
commit
58c035f05f
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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 {