gitlab4j / gitlab4j-api

GitLab4J API (gitlab4j-api) provides a full featured Java client library for working with GitLab repositories via the GitLab REST API
MIT License
1.07k stars 463 forks source link

What's wrong with my code ? #1149

Closed xingya1822 closed 3 months ago

xingya1822 commented 3 months ago

Why this return nothing:

SimpleDateFormat df = new SimpleDateFormat("yyyyMMdd");
api.getEventsApi().getUserEvents("fanguogang", ActionType.PUSHED, TargetType.PROJECT, df.parse("20240813"), df.parse("20240701"), SortOrder.ASC).forEach(e -> {
    System.out.println(e.getActionName());
});

while I can confirm there were many PUSHED events for the user 'fanguogang'