Skip to content

Commit

Permalink
Fix assertion on milestone
Browse files Browse the repository at this point in the history
  • Loading branch information
matkoch committed Dec 6, 2020
1 parent 77b0edd commit 41c70a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/Build.GitFlow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ partial class Build
.Executes(async () =>
{
var milestoneTitle = $"v{MajorMinorPatchVersion}";
var milestone = (await GitRepository.GetGitHubMilestone(milestoneTitle)).NotNull("milestone != null");
var milestone = await GitRepository.GetGitHubMilestone(milestoneTitle);
if (milestone == null)
return;

Assert(milestone.OpenIssues == 0, "milestone.OpenIssues == 0");
Assert(milestone.ClosedIssues != 0, "milestone.ClosedIssues != 0");
Assert(milestone.State == ItemState.Closed, "milestone.State == ItemState.Closed");
Expand Down

0 comments on commit 41c70a4

Please sign in to comment.