await(async()=>{constgroupId='clo';letallProjects=[];letpage=1;lethasNextPage=true;while(hasNextPage){constresponse=awaitfetch(`/api/v4/groups/${groupId}/projects?include_subgroups=true&per_page=100&page=${page}`);constprojects=awaitresponse.json();if(projects.length>0){allProjects=allProjects.concat(projects);console.log(`page ${page}: ${projects.length} repos (total: ${allProjects.length})`);page++;}else{hasNextPage=false;}awaitnewPromise(resolve=>setTimeout(resolve,300));}constresult=allProjects.map(p=>({name: p.path_with_namespace.slice(4),clone_url: p.http_url_to_repo,description: p.description}));console.log(JSON.stringify(result.sort((a,b)=>a.name<b.name ? -1 : a.name>b.name ? 1 : 0),null,2));})();Uh oh!
There was an error while loading. Please reload this page.
Latest commit
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|