Example #1
0
        public async Task Delete(string projectKey, string repositorySlug, Branch branch)
        {
            string requestUrl = UrlBuilder.FormatRestApiUrl(MANAGE_BRANCHES, null, projectKey, repositorySlug);

            branch.DryRun = false;
            branch.Name   = branch.Id;

            await _httpWorker.DeleteWithRequestContentAsync(requestUrl, branch).ConfigureAwait(false);
        }
Example #2
0
        public async Task Delete(string projectKey, string repositorySlug, Branch branch)
        {
            string requestUrl = UrlBuilder.FormatRestApiUrl(MANAGE_BRANCHES, null, projectKey, repositorySlug);

            await _httpWorker.DeleteWithRequestContentAsync(requestUrl, branch);
        }