wolfy1339
wolfy1339
What OS? Are you using a serverless platform like GCF or AWS?
Here's an example of a validation function for event names ```ts import { emitterEventNames } from "@octokit/webhooks"; import type { EmitterWebhookEventName } from "@octokit/webhooks/types"; export function validateEventName(event: string | string[]):...
Here's a set of functions to check if the payload is of proper structure, checks if the event name is a known event. Both functions resolve the types. ```ts import...
The `WebhookEventName` is actually exported in the `types.ts` file. ```ts import type { WebhookEventName } from "@octokit/webhooks/types"; ``` **Note**: there is no file extension on the import path
I found the new URL, https://explore.guelph.ca/documents/b5f353e0bd3647c5b6d09958a35c946f/about There's also a 2023 version, https://explore.guelph.ca/documents/655f7ca37096464c85c4c7a609cdf90d/about
We switched to using native `fetch` instead of `node-fetch` in v8 of `@octokit/request` and the `redirect` option was removed. See https://github.com/octokit/request.js/issues/635 Your issue may have something to do with that....
There are some differences with GHES vs GitHub.com APIs. I'm not sure if it is applicable to this endpoint though. We do have a backlog of type updates that could...
Errors from requests are implemented in [`@octokit/request-error`](https://github.com/octokit/request-error.js/) The documentation you want is probably there already
Of course, PRs are welcome!