playlist-entry-validator/netlify/functions/validate-pr/index.mts

15 lines
336 B
TypeScript
Raw Normal View History

2023-07-06 13:55:18 +02:00
import {
createProbot,
createLambdaFunction
} from '@probot/adapter-aws-lambda-serverless';
2024-01-15 07:20:19 +01:00
import { appFn } from './appFn';
2023-07-06 13:55:18 +02:00
const privateKey = (process.env.PRIVATE_KEY as string).replace(/\\n/gm, '\n');
const handler = createLambdaFunction(appFn, {
probot: createProbot({ overrides: { privateKey } })
});
export { handler };