Skip to content

Commit a2091a3

Browse files
authored
Merge pull request #724 from gitlab4j/issue-708
Fix #708 : fix typo in create_access_level key
2 parents ebaf80e + e54b958 commit a2091a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/gitlab4j/api/TagsApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ public Optional<ProtectedTag> getOptionalProtectedTag(Object projectIdOrPath, St
424424
* @throws GitLabApiException if any exception occurs
425425
*/
426426
public ProtectedTag protectTag(Object projectIdOrPath, String name, AccessLevel createAccessLevel) throws GitLabApiException {
427-
Form formData = new GitLabApiForm().withParam("name", name, true).withParam("create_access_Level", createAccessLevel);
427+
Form formData = new GitLabApiForm().withParam("name", name, true).withParam("create_access_level", createAccessLevel);
428428
Response response = post(Response.Status.OK, formData, "projects", getProjectIdOrPath(projectIdOrPath), "protected_tags");
429429
return (response.readEntity(ProtectedTag.class));
430430
}

0 commit comments

Comments
 (0)