Skip to content

Commit da94828

Browse files
committed
Prevent merging to unexpected branch
1 parent a407c53 commit da94828

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/scripts/merge_pr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function find_next_release_branch(string $current): ?string {
2323
}
2424

2525
if (!preg_match('(^PHP-(?<major>\d+)\.(?<minor>\d+)$)', $current, $matches)) {
26-
return null;
26+
throw new RuntimeException("Unsupported target branch $current");
2727
}
2828

2929
$major = $matches['major'];

0 commit comments

Comments
 (0)