Skip to content

Commit

Permalink
Merge branch 'development' into ubq-development
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Dec 2, 2024
2 parents 9c009d9 + 95aa363 commit 325f9d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/github/utils/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ async function fetchActionManifest(context: GitHubContext<"issue_comment.created
});
if ("content" in data) {
const content = Buffer.from(data.content, "base64").toString();
const manifest = decodeManifest(JSON.parse(content));
const contentParsed = JSON.parse(content);
const manifest = decodeManifest(contentParsed);
_manifestCache[manifestKey] = manifest;
return manifest;
}
Expand Down
3 changes: 2 additions & 1 deletion src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export default {
openAiClient,
});
bindHandlers(eventHandler);
ctx.waitUntil(eventHandler.webhooks.verifyAndReceive({ id, name: eventName, payload: await request.text(), signature: signatureSha256 }));
// ctx.waitUntil(eventHandler.webhooks.verifyAndReceive({ id, name: eventName, payload: await request.text(), signature: signatureSha256 }));
await eventHandler.webhooks.verifyAndReceive({ id, name: eventName, payload: await request.text(), signature: signatureSha256 });
return new Response("ok\n", { status: 200, headers: { "content-type": "text/plain" } });
} catch (error) {
return handleUncaughtError(error);
Expand Down

0 comments on commit 325f9d1

Please sign in to comment.