filter out projects with missing default branch

Signed-off-by: Zach Hammer <zhammer@seatgeek.com>
This commit is contained in:
Zach Hammer
2021-12-28 19:03:24 -05:00
parent 3c013ef065
commit deb6d781f6
@@ -94,7 +94,7 @@ export class GitLabDiscoveryProcessor implements CatalogProcessor {
};
for await (const project of projects) {
result.scanned++;
if (!project.archived) {
if (!(project.archived || project.default_branch === undefined)) {
result.matches.push(project);
}
}