File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ function isBranchNameValid(branchName) {
55 ) ||
66 ! ! branchName . match ( / ^ r e v e r t - ( [ 0 - 9 ] + ) - ( [ a - z 0 - 9 _ \- @ . / _ - ] * ) $ / ) ||
77 ! ! branchName . match ( / ^ ( m o b s u c c e s s b o t ) \/ ( [ a - z 0 - 9 _ \- @ . / _ - ] * ) $ / ) ||
8- ! ! branchName . match ( / ^ ( d e p e n d a b o t ) \/ ( [ a - z ] [ a - z A - Z 0 - 9 . / _ - ] * ) $ / )
8+ ! ! branchName . match ( / ^ ( d e p e n d a b o t ) \/ ( [ a - z ] [ a - z A - Z 0 - 9 . / _ - ] * ) $ / ) ||
9+ ! ! branchName . match ( / ^ ( r e n o v a t e ) \/ ( [ a - z 0 - 9 _ \- @ . / _ - ] * ) $ / )
910 ) ;
1011}
1112
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ describe("branch", () => {
1717 "dependabot/foo" ,
1818 "dependabot/npm_and_yarn/axios-0.21.1" ,
1919 "dependabot/npm_and_yarn/axios-0.21.1" ,
20+ "renovate/configure" ,
21+ "renovate/tanstack-table-monorepo" ,
22+ "renovate/mobsuccess-devops-dlpo-react-client-1.x" ,
2023 ] ) ( "Test branch %s should be valid" , ( branch ) => {
2124 expect ( isBranchNameValid ( branch ) ) . toBe ( true ) ;
2225 } ) ;
You can’t perform that action at this time.
0 commit comments