Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
e54b9586
Unverified
Commit
e54b9586
authored
Jul 05, 2021
by
Gautier de Saint Martin Lacaze
Browse files
Fix #708 : fix typo in create_access_level key
parent
ebaf80e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/TagsApi.java
View file @
e54b9586
...
@@ -424,7 +424,7 @@ public class TagsApi extends AbstractApi {
...
@@ -424,7 +424,7 @@ public class TagsApi extends AbstractApi {
* @throws GitLabApiException if any exception occurs
* @throws GitLabApiException if any exception occurs
*/
*/
public
ProtectedTag
protectTag
(
Object
projectIdOrPath
,
String
name
,
AccessLevel
createAccessLevel
)
throws
GitLabApiException
{
public
ProtectedTag
protectTag
(
Object
projectIdOrPath
,
String
name
,
AccessLevel
createAccessLevel
)
throws
GitLabApiException
{
Form
formData
=
new
GitLabApiForm
().
withParam
(
"name"
,
name
,
true
).
withParam
(
"create_access_
L
evel"
,
createAccessLevel
);
Form
formData
=
new
GitLabApiForm
().
withParam
(
"name"
,
name
,
true
).
withParam
(
"create_access_
l
evel"
,
createAccessLevel
);
Response
response
=
post
(
Response
.
Status
.
OK
,
formData
,
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
),
"protected_tags"
);
Response
response
=
post
(
Response
.
Status
.
OK
,
formData
,
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
),
"protected_tags"
);
return
(
response
.
readEntity
(
ProtectedTag
.
class
));
return
(
response
.
readEntity
(
ProtectedTag
.
class
));
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment