public Task <CodeBucket.Client.V1.Repository> Fork(string username, string repository, string name = null) { name = name ?? repository; var uri = $"{BitbucketClient.ApiUrl}/repositories/{Uri.EscapeDataString(username)}/{Uri.EscapeDataString(repository)}/fork"; return(_client.PostForm <CodeBucket.Client.V1.Repository>(uri, new Dictionary <string, string> { { "name", name } })); }