From 83238a2abbec86447780fd4545a283533534836e Mon Sep 17 00:00:00 2001 From: Marcin Torba Date: Thu, 10 Oct 2024 00:02:23 +0200 Subject: [PATCH] Fix --- .../AzureDevOps.cs | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/DependencyUpdated.Repositories.AzureDevOps/AzureDevOps.cs b/src/DependencyUpdated.Repositories.AzureDevOps/AzureDevOps.cs index a3f3103..d29b118 100644 --- a/src/DependencyUpdated.Repositories.AzureDevOps/AzureDevOps.cs +++ b/src/DependencyUpdated.Repositories.AzureDevOps/AzureDevOps.cs @@ -150,6 +150,20 @@ private static string CreateGitBranchName(string projectName, string branchName, return newBranchName; } + private static string CreatePrDescription(IReadOnlyCollection updates) + { + var stringBuilder = new StringBuilder(); + stringBuilder.AppendLine("DependencyUpdater auto update"); + stringBuilder.AppendLine(); + stringBuilder.AppendLine("Log:"); + foreach (var update in updates) + { + stringBuilder.AppendLine($"Bump {update.PackageName}: {update.OldVersion} -> {update.NewVersion}"); + } + + return stringBuilder.ToString(); + } + private async Task CheckIfPrExists(string sourceBranchName, string targetBranchName) { var response = await azureDevOpsClient.GetPullRequests(config.Value.AzureDevOps.Repository!); @@ -179,20 +193,6 @@ private async Task CheckIfPrExists(string sourceBranchName, string targetB return createdBranch; } - private string CreatePrDescription(IReadOnlyCollection updates) - { - var stringBuilder = new StringBuilder(); - stringBuilder.AppendLine("DependencyUpdater auto update"); - stringBuilder.AppendLine(); - stringBuilder.AppendLine("Log:"); - foreach (var update in updates) - { - stringBuilder.AppendLine($"Bump {update.PackageName}: {update.OldVersion} -> {update.NewVersion}"); - } - - return stringBuilder.ToString(); - } - private CredentialsHandler? CreateGitCredentialsProvider() { if (string.IsNullOrEmpty(config.Value.AzureDevOps.Username))