mirror of
https://github.com/outline/outline.git
synced 2026-11-27 16:08:58 +03:00
Cache issueSources for embed integrations
This commit is contained in:
1 parent
bf6a56849e
commit
2d3b6e39a8
12 files changed
+174
-20
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user