File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -116,16 +116,17 @@ public static class PackageReleaseManager
116116
117117 private const string DRAFT_RELEASE_ERROR =
118118 "A direct call to CreateDraftRelease is permitted only:\r \n " +
119- " * On a release branch (release-x.x.x)\r \n " +
120- " * On the main branch tagged for a production release\r \n " +
119+ " * On a release branch (release-x.x.x) OR\r \n " +
121120 " * Using option --packageVersion to specify a release version" ;
122121
123122 public static void CreateDraftRelease ( )
124123 {
125124 string releaseVersion =
126- CommandLineOptions . PackageVersion . Exists ? CommandLineOptions . PackageVersion . Value :
127- BuildSettings . IsReleaseBranch ? BuildSettings . BuildVersion . BranchName . Substring ( 8 ) :
128- BuildSettings . IsProductionRelease ? BuildSettings . PackageVersion : null ;
125+ CommandLineOptions . PackageVersion . Exists
126+ ? CommandLineOptions . PackageVersion . Value
127+ : BuildSettings . IsReleaseBranch
128+ ? BuildSettings . BuildVersion . BranchName . Substring ( 8 )
129+ : null ;
129130
130131 if ( releaseVersion != null )
131132 {
You can’t perform that action at this time.
0 commit comments