timols/java-gitlab-api

A Tag object should be linked to a GitlabCommit instead of a GitlabBranchCommit

Fractaliste opened this issue · 0 comments

Using pour API, I was wondering why I don't get any information about the user who do the commit.

``

List<GitlabTag> tags= gitlabAPI.getTags(projet);
// Always 0 !
long count = tags.stream().filter((tag) -> tag.getCommit().getAuthor() != null).count(); 

``
I think there is a mistake into the GitlabTag :

private GitlabBranchCommit commit;

As far as I understand the Gitlab API the expected JSON looks more like your GitlabCommit object rather than GitlabBranchCommit.