Skip to content

Commit f36fa8a

Browse files
committed
feat: Alterar a posição do nome do autor da mensagem de commit na geração das notas do release.
Agora o nome do autor está no final da descrição da mensagem de commit, se houver alguma.
1 parent 2a274bb commit f36fa8a

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/AutoRelease/Commits/CommitMessage.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,25 +80,25 @@ public CommitMessage(string message, List<CommitMessageType>? types = null,
8080
Body = body;
8181
Ignore = Ignore || ignores?.Any(Description.StartsWith) is true;
8282

83+
if (!string.IsNullOrWhiteSpace(authorName))
84+
{
85+
authorName = $" [{authorName}]";
86+
}
87+
8388
if (useBodyAsReleaseDescription && body is not null)
8489
{
85-
ReleaseDescription = body;
90+
ReleaseDescription = body + authorName;
8691
}
8792
else
8893
{
89-
ReleaseDescription = Description;
94+
ReleaseDescription = Description + authorName;
9095

9196
if (body is not null)
9297
{
9398
ReleaseDescription += DoubleHtmlBreakLine + body;
9499
}
95100
}
96101

97-
if (!string.IsNullOrWhiteSpace(authorName))
98-
{
99-
ReleaseDescription += $" [{authorName}]";
100-
}
101-
102102
if (replaces is not { Count: > 0 })
103103
{
104104
return;

0 commit comments

Comments
 (0)