Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
37503e0c
Unverified
Commit
37503e0c
authored
2 years ago
by
Jérémie Bresson
Committed by
GitHub
2 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Use POST instead of PUT for cancelMergeRequest(..) (#948)
Fixes #931
parent
f8e26d50
main
6.x
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/gitlab4j/api/MergeRequestApi.java
+2
-2
src/main/java/org/gitlab4j/api/MergeRequestApi.java
with
2 additions
and
2 deletions
+2
-2
src/main/java/org/gitlab4j/api/MergeRequestApi.java
+
2
-
2
View file @
37503e0c
...
...
@@ -804,7 +804,7 @@ public class MergeRequestApi extends AbstractApi {
*
* <p>NOTE: GitLab API V4 uses IID (internal ID), V3 uses ID to identify the merge request.</p>
*
* <pre><code>GitLab Endpoint: P
U
T /projects/:id/merge_requests/:merge_request_iid/cancel_merge_when_pipeline_succeeds</code></pre>
* <pre><code>GitLab Endpoint: P
OS
T /projects/:id/merge_requests/:merge_request_iid/cancel_merge_when_pipeline_succeeds</code></pre>
*
* @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
...
...
@@ -817,7 +817,7 @@ public class MergeRequestApi extends AbstractApi {
throw
new
RuntimeException
(
"mergeRequestIid cannot be null"
);
}
Response
response
=
p
u
t
(
Response
.
Status
.
OK
,
null
,
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
),
"merge_requests"
,
mergeRequestIid
,
"cancel_merge_when_pipeline_succeeds"
);
Response
response
=
p
os
t
(
Response
.
Status
.
OK
,
(
Form
)
null
,
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
),
"merge_requests"
,
mergeRequestIid
,
"cancel_merge_when_pipeline_succeeds"
);
return
(
response
.
readEntity
(
MergeRequest
.
class
));
}
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets