Here's a tutorial using Slack to create a custom function using type script. This covers all the steps to create the app, get the PAN, and deploy the code. Specifically this is with respect to Github API as that's what I'm implementing now https://tools.slack.dev/deno-slack-sdk/tutorials/github-issues-app/