Skip to content

Commit 82b6da8

Browse files
committed
Check repo type and repo name alwways on lower case
1 parent 43835c6 commit 82b6da8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CommandBus/Handler/Repository/AppVeyorHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public function handle(AppVeyorCommand $command): PromiseInterface
3232
return new Promise(function ($resolve, $reject) use ($command) {
3333
$repo = false;
3434
$this->appveyor->projects()->filter(function (ProjectInterface $project) use ($command) {
35-
return $project->repositoryType() === 'github' &&
36-
$project->repositoryName() === $command->getRepository();
35+
return strtolower($project->repositoryType()) === 'github' &&
36+
strtolower($project->repositoryName()) === strtolower($command->getRepository());
3737
})->take(1)->subscribe(function ($repository) use (&$repo) {
3838
$repo = $repository;
3939
}, function ($error) use ($reject) {

0 commit comments

Comments
 (0)