Skip to content

Commit 6510ab6

Browse files
authored
normalize spaces in PR titles (#223)
1 parent df5a9ac commit 6510ab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Subscriber/AutoUpdateTitleWithLabelSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function onPullRequest(GitHubEvent $event)
7777
}
7878

7979
// Add back labels
80-
$prTitle = trim($prPrefix.' '.trim($prTitle));
80+
$prTitle = trim($prPrefix.' '.trim(str_replace(' ', '', $prTitle)));
8181
if ($originalTitle === $prTitle) {
8282
return;
8383
}

0 commit comments

Comments
 (0)