timols / java-gitlab-api

A wrapper for the Gitlab API written in Java
Apache License 2.0
387 stars 317 forks source link

gitlab 13.x gitlab access level 5 not supported- throws exception #393

Open ashwin25 opened 3 years ago

ashwin25 commented 3 years ago

exception while looping through git projects through GitlabProject object : Caused by: java.lang.IllegalArgumentException: No GitLab Access Level enum constant with access value: 5

gitlab has introduced level 5 minimum access level in git 13.x as documented here -> https://docs.gitlab.com/ee/api/access_requests.html#valid-access-levels

fix required in this file-> https://github.com/timols/java-gitlab-api/blob/master/src/main/java/org/gitlab/api/models/GitlabAccessLevel.java#L5-L10

@timols i shall raise a PR shortly based on contrib guidelines please accept.