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)
32
32
33
33
public static bool IsSupport ( this Branch branch )
34
34
{
35
- return branch . Name . ToLower ( ) . StartsWith ( "support-" ) ;
35
+ return branch . Name . ToLower ( ) . StartsWith ( "support-" ) || branch . Name . StartsWith ( "support/" ) ;
36
36
}
37
37
}
38
38
}
Original file line number Diff line number Diff line change @@ -24,6 +24,15 @@ public void IsRelease()
24
24
Assert . IsFalse ( new MockBranch ( "release" ) . IsRelease ( ) ) ;
25
25
}
26
26
[ 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 ]
27
36
public void IsDevelop ( )
28
37
{
29
38
Assert . IsTrue ( new MockBranch ( "develop" ) . IsDevelop ( ) ) ;
You can’t perform that action at this time.
0 commit comments