Skip to content
Open
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
2 changes: 2 additions & 0 deletions UAGithubEngine/UAGithubEngine.m
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ - (id)sendRequest:(NSString *)path requestType:(UAGithubRequestType)requestType
case UAGithubTeamCreateRequest:
case UAGithubMarkdownRequest:
case UAGithubRepositoryMergeRequest:
case UAGithubRepositoryForkRequest:
{
[urlRequest setHTTPMethod:@"POST"];
}
Expand Down Expand Up @@ -1278,6 +1279,7 @@ - (void)forkRepository:(NSString *)repositoryPath inOrganization:(NSString *)org
if (org)
{
[self invoke:^(id self){[self sendRequest:[NSString stringWithFormat:@"repos/%@/forks", repositoryPath] requestType:UAGithubRepositoryForkRequest responseType:UAGithubRepositoryResponse withParameters:[NSDictionary dictionaryWithObject:org forKey:@"org"] error:nil];} success:successBlock failure:failureBlock];
return;
}
[self invoke:^(id self){[self sendRequest:[NSString stringWithFormat:@"repos/%@/forks", repositoryPath] requestType:UAGithubRepositoryForkRequest responseType:UAGithubRepositoryResponse error:nil];} success:successBlock failure:failureBlock];
}
Expand Down