Skip to content

Commit

Permalink
Fix Git command placeholder bug
Browse files Browse the repository at this point in the history
  • Loading branch information
raman-m committed Oct 6, 2023
1 parent d2f76ae commit 65be4b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ Task("CreateReleaseNotes")
{
if (!statistics.Exists(s => s.Contributor == author))
{
var shortstat = GitHelper($"log --no-merges --author='{author}' --shortstat --pretty=oneline {lastRelease}..HEAD");
var shortstat = GitHelper($"log --no-merges --author=\"{author}\" --shortstat --pretty=oneline {lastRelease}..HEAD");
var data = shortstat
.Where(x => shortstatRegex.IsMatch(x))
.Select(x => shortstatRegex.Match(x))
Expand Down Expand Up @@ -303,7 +303,7 @@ Task("CreateReleaseNotes")
releaseNotes.AddRange(starring);
releaseNotes.Add("");
releaseNotes.Add($"### Features in Release {releaseVersion}");
var commitsHistory = GitHelper($"log --no-merges --date=format-local:\"%A, %B %d at %H:%M\" --pretty=format:\"<sub>%h by **%aN** on %ad &rarr;</sub>%n%s\" {lastRelease}..HEAD");
var commitsHistory = GitHelper($"log --no-merges --date=format:\"%A, %B %d at %H:%M\" --pretty=format:\"<sub>%h by **%aN** on %ad &rarr;</sub>%n%s\" {lastRelease}..HEAD");
releaseNotes.AddRange(commitsHistory);

EnsureDirectoryExists(packagesDir);
Expand Down

0 comments on commit 65be4b6

Please sign in to comment.