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
bfce0b4f
Commit
bfce0b4f
authored
Sep 09, 2019
by
Greg Messner
Browse files
createTag() now properly uses form data vs. query params (#430).
parent
689f7df9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/TagsApi.java
View file @
bfce0b4f
...
...
@@ -236,7 +236,7 @@ public class TagsApi extends AbstractApi {
.
withParam
(
"ref"
,
ref
,
true
)
.
withParam
(
"message"
,
message
)
.
withParam
(
"release_description"
,
releaseNotes
);
Response
response
=
post
(
Response
.
Status
.
CREATED
,
formData
.
asMap
()
,
Response
response
=
post
(
Response
.
Status
.
CREATED
,
formData
,
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
),
"repository"
,
"tags"
);
return
(
response
.
readEntity
(
Tag
.
class
));
}
...
...
@@ -299,7 +299,7 @@ public class TagsApi extends AbstractApi {
*/
public
Release
createRelease
(
Object
projectIdOrPath
,
String
tagName
,
String
releaseNotes
)
throws
GitLabApiException
{
Form
formData
=
new
GitLabApiForm
().
withParam
(
"description"
,
releaseNotes
);
Response
response
=
post
(
Response
.
Status
.
CREATED
,
formData
.
asMap
()
,
Response
response
=
post
(
Response
.
Status
.
CREATED
,
formData
,
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
),
"repository"
,
"tags"
,
urlEncode
(
tagName
),
"release"
);
return
(
response
.
readEntity
(
Release
.
class
));
}
...
...
@@ -317,7 +317,7 @@ public class TagsApi extends AbstractApi {
*/
public
Release
updateRelease
(
Object
projectIdOrPath
,
String
tagName
,
String
releaseNotes
)
throws
GitLabApiException
{
Form
formData
=
new
GitLabApiForm
().
withParam
(
"description"
,
releaseNotes
);
Response
response
=
put
(
Response
.
Status
.
OK
,
formData
.
asMap
()
,
Response
response
=
put
WithFormData
(
Response
.
Status
.
OK
,
formData
,
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
),
"repository"
,
"tags"
,
urlEncode
(
tagName
),
"release"
);
return
(
response
.
readEntity
(
Release
.
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