Replace AWS Lambda adapter with custom function

This commit is contained in:
2023-07-06 13:08:59 +02:00
parent 22b75f6c3f
commit 123f2b78ee
6 changed files with 54 additions and 20 deletions

View File

@@ -1,11 +1,11 @@
import { ApplicationFunction } from 'probot';
import getMetaData from 'metadata-scraper';
import { getPlaylistIdFromUrl } from './getPlaylistIdFromUrl';
import { Probot } from 'probot';
type ReviewEvent = 'REQUEST_CHANGES' | 'COMMENT' | 'APPROVE';
export const appFn: ApplicationFunction = (app) => {
export const appFn = (app: Probot) => {
app.on(
['pull_request.opened', 'pull_request.synchronize'],
async ({ payload, octokit }) => {