mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
chore: auto-fix lint & formatting [skip ci]
This commit is contained in:
1 parent
449739ee97
commit
5c31b573d3
2 files changed
+16
-11
No files matched your search
@@ -22,14 +22,17 @@ export async function getCheckSuiteBuildLogUrl(
|
||||
if (!checkRunsUrl || !appId || !privateKey || !installationId) return undefined;
|
||||
try {
|
||||
const jwt = await createAppJwt(appId, privateKey);
|
||||
const tokRes = await fetch(`https://api.github.com/app/installations/${installationId}/access_tokens`, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
Authorization: `Bearer ${jwt}`,
|
||||
Accept: "application/vnd.github+json",
|
||||
"X-GitHub-Api-Version": API_VERSION,
|
||||
const tokRes = await fetch(
|
||||
`https://api.github.com/app/installations/${installationId}/access_tokens`,
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
Authorization: `Bearer ${jwt}`,
|
||||
Accept: "application/vnd.github+json",
|
||||
"X-GitHub-Api-Version": API_VERSION,
|
||||
},
|
||||
},
|
||||
});
|
||||
);
|
||||
if (!tokRes.ok) return undefined;
|
||||
const { token } = (await tokRes.json()) as { token?: string };
|
||||
if (!token) return undefined;
|
||||
|
||||
Reference in new issue
Block a user