Cache issueSources for embed integrations

This commit is contained in:
hmacr committed 2025-04-13 20:31:23 +05:30
1 parent bf6a56849e
commit 2d3b6e39a8
12 files changed
+174 -20

No files matched your search

+11
View File
@@ -18,6 +18,17 @@ import { UnfurlSignature } from "@server/types";
import env from "./env";
const requestPlugin = (octokit: Octokit) => ({
requestRepos: () =>
octokit.paginate.iterator(
octokit.rest.apps.listReposAccessibleToInstallation,
{
headers: {
Accept: "application/vnd.github+json",
"X-GitHub-Api-Version": "2022-11-28",
},
}
),
requestPR: async (params: ReturnType<typeof GitHub.parseUrl>) =>
octokit.request(`GET /repos/{owner}/{repo}/pulls/{id}`, {
owner: params?.owner,