@@ -115,11 +115,11 @@ public ReleaseInfo(ReleaseBranchInfo currentBranch) : this(currentBranch, null)
115
115
[ JsonConstructor ]
116
116
public ReleaseInfo ( ReleaseBranchInfo currentBranch , ReleaseBranchInfo newBranch )
117
117
{
118
- Requires . NotNull ( currentBranch , nameof ( currentBranch ) ) ;
118
+ Requires . NotNull ( currentBranch , nameof ( currentBranch ) ) ;
119
119
// skip null check for newBranch, it is allowed to be null.
120
120
121
- this . CurrentBranch = currentBranch ;
122
- this . NewBranch = newBranch ;
121
+ this . CurrentBranch = currentBranch ;
122
+ this . NewBranch = newBranch ;
123
123
}
124
124
}
125
125
@@ -235,7 +235,7 @@ public void PrepareRelease(string projectDirectory, string releaseUnstableTag =
235
235
this . stderr . WriteLine ( $ "Failed to load version file for directory '{ projectDirectory } '.") ;
236
236
throw new ReleasePreparationException ( ReleasePreparationError . NoVersionFile ) ;
237
237
}
238
-
238
+
239
239
var releaseBranchName = this . GetReleaseBranchName ( versionOptions ) ;
240
240
var originalBranchName = repository . Head . FriendlyName ;
241
241
var releaseVersion = string . IsNullOrEmpty ( releaseUnstableTag )
@@ -245,7 +245,7 @@ public void PrepareRelease(string projectDirectory, string releaseUnstableTag =
245
245
// check if the current branch is the release branch
246
246
if ( string . Equals ( originalBranchName , releaseBranchName , StringComparison . OrdinalIgnoreCase ) )
247
247
{
248
- if ( outputMode == ReleaseManagerOutputMode . Text )
248
+ if ( outputMode == ReleaseManagerOutputMode . Text )
249
249
{
250
250
this . stdout . WriteLine ( $ "{ releaseBranchName } branch advanced from { versionOptions . Version } to { releaseVersion } .") ;
251
251
}
@@ -281,9 +281,9 @@ public void PrepareRelease(string projectDirectory, string releaseUnstableTag =
281
281
Commands . Checkout ( repository , originalBranchName ) ;
282
282
this . UpdateVersion ( projectDirectory , repository , versionOptions . Version , nextDevVersion ) ;
283
283
284
- if ( outputMode == ReleaseManagerOutputMode . Text )
284
+ if ( outputMode == ReleaseManagerOutputMode . Text )
285
285
{
286
- this . stdout . WriteLine ( $ "{ originalBranchName } branch now tracks v{ nextDevVersion } development.") ;
286
+ this . stdout . WriteLine ( $ "{ originalBranchName } branch now tracks v{ nextDevVersion } development.") ;
287
287
}
288
288
289
289
// Merge release branch back to main branch
@@ -294,14 +294,14 @@ public void PrepareRelease(string projectDirectory, string releaseUnstableTag =
294
294
} ;
295
295
repository . Merge ( releaseBranch , this . GetSignature ( repository ) , mergeOptions ) ;
296
296
297
- if ( outputMode == ReleaseManagerOutputMode . Json )
297
+ if ( outputMode == ReleaseManagerOutputMode . Json )
298
298
{
299
299
var originalBranchInfo = new ReleaseBranchInfo ( originalBranchName , repository . Head . Tip . Sha , nextDevVersion ) ;
300
300
var releaseBranchInfo = new ReleaseBranchInfo ( releaseBranchName , repository . Branches [ releaseBranchName ] . Tip . Id . ToString ( ) , releaseVersion ) ;
301
301
var releaseInfo = new ReleaseInfo ( originalBranchInfo , releaseBranchInfo ) ;
302
302
303
303
this . WriteToOutput ( releaseInfo ) ;
304
- }
304
+ }
305
305
}
306
306
307
307
private string GetReleaseBranchName ( VersionOptions versionOptions )
@@ -409,7 +409,7 @@ private SemanticVersion GetNextDevVersion(VersionOptions versionOptions, Version
409
409
var currentVersion = versionOptions . Version ;
410
410
411
411
SemanticVersion nextDevVersion ;
412
- if ( nextVersionOverride != null )
412
+ if ( nextVersionOverride != null )
413
413
{
414
414
nextDevVersion = new SemanticVersion ( nextVersionOverride , currentVersion . Prerelease , currentVersion . BuildMetadata ) ;
415
415
}
0 commit comments