(url, init)
| 41 | "Content-Type": "application/json" |
| 42 | } |
| 43 | const request = (url, init) => fetch(url, { |
| 44 | ...init, |
| 45 | redirect: "error", |
| 46 | signal: AbortSignal.timeout(30_000) |
| 47 | }) |
| 48 | const githubBase = `https://api.github.com/repos/${repo}` |
| 49 | const permission = await request(`${githubBase}/collaborators/${encodeURIComponent(author)}/permission`, { |
| 50 | headers: githubHeaders |