Skip to content

Commit 185d4e8

Browse files
committed
do not combine existing branches made by this project into its self
1 parent 3c94dcc commit 185d4e8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/cmd/match_criteria.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ func PrMatchesCriteria(branch string, prLabels []string) bool {
2828

2929
// checks if a branch matches the branch filtering criteria
3030
func branchMatchesCriteria(branch string) bool {
31+
// Do not attempt to match on existing branches that were created by this CLI
32+
if branch == combineBranchName {
33+
return false
34+
}
35+
3136
// If no branch filters are specified, all branches pass this check
3237
if branchPrefix == "" && branchSuffix == "" && branchRegex == "" {
3338
return true

0 commit comments

Comments
 (0)