feat: install plugins from approved source commits
This commit is contained in:
@@ -138,6 +138,16 @@ final class GitHubAdapter extends AbstractAdapter
|
||||
return $releases;
|
||||
}
|
||||
|
||||
public function sourceArchiveUrl(array $repository, string $commitSha): ?string
|
||||
{
|
||||
if (!empty($repository['private'])) {
|
||||
return null;
|
||||
}
|
||||
$this->validateRepository($repository);
|
||||
$this->assertCommit($commitSha);
|
||||
return 'https://codeload.github.com/' . $repository['fullName'] . '/tar.gz/' . $commitSha;
|
||||
}
|
||||
|
||||
/** @return list<array<string,mixed>>|null */
|
||||
private function paged(string $endpoint): ?array
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user