001、GitLabApi使用
1. 错误信息
1.1 GitLabApiException: access_level
GitLabApiException: access_level
gitLabApi.getProjectApi().addMember(projectId, userId, AccessLevel.DEVELOPER);
org.gitlab4j.api.GitLabApiException: The following fields have validation errors: access_level
at org.gitlab4j.api.AbstractApi.validate(AbstractApi.java:678)
at org.gitlab4j.api.AbstractApi.post(AbstractApi.java:323)
at org.gitlab4j.api.ProjectApi.addMember(ProjectApi.java:1759)
at org.gitlab4j.api.ProjectApi.addMember(ProjectApi.java:1719)
结论:
调用GitLabApi的账号权限不够