Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/main/java/org/gitlab4j/api/EpicsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,7 @@ public Epic createEpic(
.withParam("start_date", startDate)
.withParam("end_date", endDate)
.withParam("created_at", createdAt);
Response response =
post(Response.Status.CREATED, formData.asMap(), "groups", getGroupIdOrPath(groupIdOrPath), "epics");
Response response = post(Response.Status.CREATED, formData, "groups", getGroupIdOrPath(groupIdOrPath), "epics");
return (response.readEntity(Epic.class));
}

Expand Down Expand Up @@ -363,8 +362,7 @@ public Epic createEpic(Object groupIdOrPath, Epic epic) throws GitLabApiExceptio
.withParam("start_date", epic.getStartDate())
.withParam("end_date", epic.getEndDate())
.withParam("created_at", epic.getCreatedAt());
Response response =
post(Response.Status.CREATED, formData.asMap(), "groups", getGroupIdOrPath(groupIdOrPath), "epics");
Response response = post(Response.Status.CREATED, formData, "groups", getGroupIdOrPath(groupIdOrPath), "epics");
return (response.readEntity(Epic.class));
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/gitlab4j/api/RunnersApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ public RunnerDetail registerRunner(
.withParam("run_untagged", runUntagged, false)
.withParam("tag_list", tagList, false)
.withParam("maximum_timeout", maximumTimeout, false);
Response response = post(Response.Status.CREATED, formData.asMap(), "runners");
Response response = post(Response.Status.CREATED, formData, "runners");
return (response.readEntity(RunnerDetail.class));
}

Expand Down