Skip to content

Commit ac825e0

Browse files
committed
(GH-48) Corrected issue in logic
- Based on there being a milestone number, it should create release notes from milestone, not from input file
1 parent bff6463 commit ac825e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/GitHubReleaseManager.Cli/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ private static async Task<int> CreateReleaseAsync(CreateSubOptions subOptions, I
130130
var github = subOptions.CreateGitHubClient();
131131
var configuration = ConfigurationProvider.Provide(subOptions.TargetDirectory, fileSystem);
132132

133-
if (string.IsNullOrEmpty(subOptions.Milestone))
133+
if (!string.IsNullOrEmpty(subOptions.Milestone))
134134
{
135135
await CreateReleaseFromMilestone(github, subOptions.RepositoryOwner, subOptions.RepositoryName, subOptions.Milestone, subOptions.TargetCommitish, subOptions.AssetPaths, subOptions.Prerelease, configuration);
136136
}

0 commit comments

Comments
 (0)