Skip to content

Commit

Permalink
Allow merge branches
Browse files Browse the repository at this point in the history
  • Loading branch information
ileasile committed Apr 23, 2024
1 parent 1241234 commit d36eb1c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ class ConfigTest {
)

val pullRegex = "(pull/[1-9]\\d*)"
val mergeRegex = "(refs/merge/.*)"
val developersRegex = developers.joinToString("|", "(", ")") + "/.*"

if (!branch.matches(Regex("$pullRegex|$developersRegex"))) {
if (!branch.matches(Regex("$pullRegex|$mergeRegex|$developersRegex"))) {
assertEquals(-1, branch.indexOf('/'), "Branch name should be simple")
}

Expand Down

0 comments on commit d36eb1c

Please sign in to comment.