-
Notifications
You must be signed in to change notification settings - Fork 483
Closed
Description
For my GitLab Plugin for Jenkins,
I need DiffRefs
of Merge Request. Although DiffRefs
get populated for single MergeRequest
call e.g.
System.out.println(gitLabApi.getMergeRequestApi().getMergeRequest(projectpath, 1));
But it doesn't work when called for a list of Merge Requests. The DiffRefs
field is returned null
e.g.
for(final MergeRequest m : gitLabApi.getMergeRequestApi().getMergeRequests("catwoman/gitlab-bs", Constants.MergeRequestState.OPENED)) {
System.out.println(m);
System.out.println("-----------------");
}
For getting the DiffRefs
I need to perform an extra api call inside the for loop, e.g.
for(final MergeRequest m : gitLabApi.getMergeRequestApi().getMergeRequests("catwoman/gitlab-bs", Constants.MergeRequestState.OPENED)) {
System.out.println(gitLabApi.getMergeRequestApi().getMergeRequest(project, m.getIid()));
System.out.println("-----------------");
}
Want to know if this has to do something with default GitLab API or gitlab4j?
Thanks.
Metadata
Metadata
Assignees
Labels
No labels