fix naming
This commit is contained in:
parent
a2860971a6
commit
6d43bbc6b9
1 changed files with 3 additions and 3 deletions
|
|
@ -151,14 +151,14 @@ public function getUpdatePath()
|
||||||
public function syncGithubAppName()
|
public function syncGithubAppName()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$jwt = $this->github_app->generateJWT();
|
$github_access_token = generate_github_installation_token($this->github_app);
|
||||||
|
|
||||||
$response = Http::withToken($jwt)
|
$response = Http::withToken($github_access_token)
|
||||||
->withHeaders([
|
->withHeaders([
|
||||||
'Accept' => 'application/vnd.github+json',
|
'Accept' => 'application/vnd.github+json',
|
||||||
'X-GitHub-Api-Version' => '2022-11-28',
|
'X-GitHub-Api-Version' => '2022-11-28',
|
||||||
])
|
])
|
||||||
->get('https://api.github.com/app');
|
->get("{$this->github_app->api_url}/app");
|
||||||
|
|
||||||
if ($response->successful()) {
|
if ($response->successful()) {
|
||||||
$app_data = $response->json();
|
$app_data = $response->json();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue