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
a273f674
Commit
a273f674
authored
7 years ago
by
Fouad
Committed by
Greg Messner
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
No correctly uses POST instead of GET to enable a runner (#173)
parent
48fa1ad5
main
5.0.x
5.0.x.jdk17
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/RunnersApi.java
+1
-1
src/main/java/org/gitlab4j/api/RunnersApi.java
with
1 addition
and
1 deletion
+1
-1
src/main/java/org/gitlab4j/api/RunnersApi.java
+
1
-
1
View file @
a273f674
...
@@ -324,7 +324,7 @@ public class RunnersApi extends AbstractApi {
...
@@ -324,7 +324,7 @@ public class RunnersApi extends AbstractApi {
}
}
GitLabApiForm
formData
=
new
GitLabApiForm
()
GitLabApiForm
formData
=
new
GitLabApiForm
()
.
withParam
(
"runner_id"
,
runnerId
,
true
);
.
withParam
(
"runner_id"
,
runnerId
,
true
);
Response
response
=
ge
t
(
Response
.
Status
.
OK
,
formData
.
asMap
(),
"projects"
,
projectId
,
"runners"
);
Response
response
=
pos
t
(
Response
.
Status
.
CREATED
,
formData
.
asMap
(),
"projects"
,
projectId
,
"runners"
);
return
(
response
.
readEntity
(
Runner
.
class
));
return
(
response
.
readEntity
(
Runner
.
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