Skip to content

Commit 5a7ff1b

Browse files
Reference api.github.com in Flex endpoint
1 parent 18265cf commit 5a7ff1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GenerateFlexEndpointCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8080
'versions' => $contrib ? [] : HttpClient::create()->request('GET', 'https://flex.symfony.com/versions.json')->toArray(),
8181
'git_url' => sprintf('https://github.com/%s.git', $repository),
8282
'tree_template' => sprintf('https://github.com/%s/tree/{tree}/{package}/{version}', $repository),
83-
'recipe_template' => sprintf('https://raw.githubusercontent.com/%s/%s/{package_dotted}.{version}.json', $repository, $flexBranch),
83+
'recipe_template' => sprintf('https://api.github.com/repos/%s/contents/{package_dotted}.{version}.json?ref=%s', $repository, $flexBranch),
8484
'is_contrib' => $contrib,
8585
], JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
8686

0 commit comments

Comments
 (0)