public async Task <DefaultReviewerPullRequestCondition> UpdateDefaultReviewerConditionAsync(string projectKey, string repositorySlug, string defaultReviewerPullRequestConditionId, DefaultReviewerPullRequestCondition condition) { var response = await GetDefaultReviewersUrl($"/projects/{projectKey}/repos/{repositorySlug}/conditions/{defaultReviewerPullRequestConditionId}") .PutJsonAsync(condition) .ConfigureAwait(false); return(await HandleResponseAsync <DefaultReviewerPullRequestCondition>(response).ConfigureAwait(false)); }
public async Task <DefaultReviewerPullRequestCondition> CreateDefaultReviewerConditionAsync(string projectKey, DefaultReviewerPullRequestCondition condition) { var response = await GetDefaultReviewersUrl($"/projects/{projectKey}/conditions") .PostJsonAsync(condition) .ConfigureAwait(false); return(await HandleResponseAsync <DefaultReviewerPullRequestCondition>(response).ConfigureAwait(false)); }