File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public static bool IsPullRequest(this Branch branch)
3232
3333 public static bool IsSupport ( this Branch branch )
3434 {
35- return branch . Name . ToLower ( ) . StartsWith ( "support-" ) ;
35+ return branch . Name . ToLower ( ) . StartsWith ( "support-" ) || branch . Name . StartsWith ( "support/" ) ;
3636 }
3737 }
3838}
Original file line number Diff line number Diff line change @@ -24,6 +24,15 @@ public void IsRelease()
2424 Assert . IsFalse ( new MockBranch ( "release" ) . IsRelease ( ) ) ;
2525 }
2626 [ Test ]
27+ public void IsSupport ( )
28+ {
29+ Assert . IsTrue ( new MockBranch ( "support-1" ) . IsSupport ( ) ) ;
30+ Assert . IsTrue ( new MockBranch ( "support/1" ) . IsSupport ( ) ) ;
31+ Assert . IsTrue ( new MockBranch ( "Support-1" ) . IsSupport ( ) ) ;
32+ Assert . IsTrue ( new MockBranch ( "Support/1" ) . IsSupport ( ) ) ;
33+ Assert . IsFalse ( new MockBranch ( "release" ) . IsRelease ( ) ) ;
34+ }
35+ [ Test ]
2736 public void IsDevelop ( )
2837 {
2938 Assert . IsTrue ( new MockBranch ( "develop" ) . IsDevelop ( ) ) ;
You can’t perform that action at this time.
0 commit comments