@@ -227,7 +227,7 @@ private static async Task<int> ExportReleasesAsync(ExportSubOptions subOptions,
227
227
}
228
228
}
229
229
230
- private static async Task CreateReleaseFromMilestone ( GitHubClient github , string owner , string repository , string milestone , string targetCommitish , IList < string > assets , Config configuration )
230
+ private static async Task CreateReleaseFromMilestone ( GitHubClient github , string owner , string repository , string milestone , string targetCommitish , IList < string > assets , bool preRelease , Config configuration )
231
231
{
232
232
var releaseNotesBuilder = new ReleaseNotesBuilder ( new DefaultGitHubClient ( github , owner , repository ) , owner , repository , milestone , configuration ) ;
233
233
@@ -237,7 +237,8 @@ private static async Task CreateReleaseFromMilestone(GitHubClient github, string
237
237
{
238
238
Draft = true ,
239
239
Body = result ,
240
- Name = milestone
240
+ Name = milestone ,
241
+ Prerelease = preRelease
241
242
} ;
242
243
243
244
if ( ! string . IsNullOrEmpty ( targetCommitish ) )
@@ -265,7 +266,7 @@ private static async Task CreateReleaseFromMilestone(GitHubClient github, string
265
266
}
266
267
}
267
268
268
- private static async Task CreateReleaseFromInputFile ( GitHubClient github , string owner , string repository , string name , string inputFilePath , string targetCommitish , IList < string > assets , Config configuration )
269
+ private static async Task CreateReleaseFromInputFile ( GitHubClient github , string owner , string repository , string name , string inputFilePath , string targetCommitish , IList < string > assets , bool preRelease , Config configuration )
269
270
{
270
271
if ( ! File . Exists ( inputFilePath ) )
271
272
{
@@ -278,7 +279,8 @@ private static async Task CreateReleaseFromInputFile(GitHubClient github, string
278
279
{
279
280
Draft = true ,
280
281
Body = inputFileContents ,
281
- Name = name
282
+ Name = name ,
283
+ Prerelease = preRelease
282
284
} ;
283
285
284
286
if ( ! string . IsNullOrEmpty ( targetCommitish ) )
0 commit comments