Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

ash-jc-allen/find-a-pr

82 stars
1 code files
View ash-jc-allen/find-a-pr on GitHub

app/Services/RepoService.php

Open in GitHub
class RepoService
{
public function reposToCrawl(): Collection
{
return collect(config('repos.repos'))
->flatMap(function (array $repoNames, string $owner): array {
return collect($repoNames)->map(function (string $repoName) use ($owner): array {
return [
'owner' => $owner,
'name' => $repoName,
];
})->all();
});
}
}

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.