We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 517d05b commit a4fdc95Copy full SHA for a4fdc95
src/Subscriber/AutoUpdateTitleWithLabelSubscriber.php
@@ -39,7 +39,7 @@ public function onPullRequest(GitHubEvent $event)
39
return;
40
}
41
42
- $originalTitle = $prTitle = $data['pull_request']['title'];
+ $originalTitle = $prTitle = trim($data['pull_request']['title']);
43
$validLabels = [];
44
foreach ($data['pull_request']['labels'] as $label) {
45
if ('dddddd' === $label['color']) {
@@ -61,7 +61,7 @@ public function onPullRequest(GitHubEvent $event)
61
62
63
// Add back labels
64
- $prTitle = $prPrefix.' '.$prTitle;
+ $prTitle = trim($prPrefix.' '.$prTitle);
65
if ($originalTitle === $prTitle) {
66
67
0 commit comments