Skip to content

Commit

Permalink
GitTools#492 fix: throw a warning when RenameFrom is not recognized a…
Browse files Browse the repository at this point in the history
…s a valid label
  • Loading branch information
davidzwa committed Jun 10, 2023
1 parent 971a1fb commit 20c1394
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/GitReleaseManager.Core/VcsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,13 @@ public async Task CreateOrUpdateLabelsAsync(string owner, string repository)
}
else
{
if (!string.IsNullOrEmpty(label.RenameFrom))
{
_logger.Warning(
"Label '{RenameFrom}' does not exist, creating new label '{Name}' instead",
label.RenameFrom, label.Name);
}

newLabels.Add(newLabel);
}
}
Expand Down

0 comments on commit 20c1394

Please sign in to comment.