Skip to content

Commit 20c1394

Browse files
committed
GitTools#492 fix: throw a warning when RenameFrom is not recognized as a valid label
1 parent 971a1fb commit 20c1394

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/GitReleaseManager.Core/VcsService.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,13 @@ public async Task CreateOrUpdateLabelsAsync(string owner, string repository)
318318
}
319319
else
320320
{
321+
if (!string.IsNullOrEmpty(label.RenameFrom))
322+
{
323+
_logger.Warning(
324+
"Label '{RenameFrom}' does not exist, creating new label '{Name}' instead",
325+
label.RenameFrom, label.Name);
326+
}
327+
321328
newLabels.Add(newLabel);
322329
}
323330
}

0 commit comments

Comments
 (0)