workspaceMergeRepoPullRequestWithHttpInfo method
Performs an HTTP 'POST /v1/organizations/{org}/workspaces/{workspace}/repos/repositories/{owner}/{repo}/pulls/{number}/merge' operation and returns the Response.
Parameters:
Implementation
Future<Response> workspaceMergeRepoPullRequestWithHttpInfo(String org, String workspace, String owner, String repo, int number, { Map<String, Object>? requestBody, }) async {
// ignore: prefer_const_declarations
final path = r'/v1/organizations/{org}/workspaces/{workspace}/repos/repositories/{owner}/{repo}/pulls/{number}/merge'
.replaceAll('{org}', org)
.replaceAll('{workspace}', workspace)
.replaceAll('{owner}', owner)
.replaceAll('{repo}', repo)
.replaceAll('{number}', number.toString());
// ignore: prefer_final_locals
Object? postBody = requestBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}