java-gitlab-api icon indicating copy to clipboard operation
java-gitlab-api copied to clipboard

Is there anyway of filtering forked projects from the originals?

Open aram535 opened this issue 8 years ago • 0 comments

Hi,

I need to get a list of the projects from gitlab and exclude any "forks".

This was working for a while ... but it seems to an invalid test of a "forked" project.

List<GitlabProject> projects = api.getAllProjects(); List<GitlabProjects> filtered = projects.stream().filter(p -> p.getOwner() != null).collect(Collectors.toList());

Any other filters I could use to filter out the forked projects?

aram535 avatar Oct 26 '17 11:10 aram535