Reintroduce AWS Lambda adapter
This commit is contained in:
14
netlify/functions/validate-pr/index.ts
Normal file
14
netlify/functions/validate-pr/index.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import {
|
||||
createProbot,
|
||||
createLambdaFunction
|
||||
} from '@probot/adapter-aws-lambda-serverless';
|
||||
|
||||
import { appFn } from '../../../appFn';
|
||||
|
||||
const privateKey = (process.env.PRIVATE_KEY as string).replace(/\\n/gm, '\n');
|
||||
|
||||
const handler = createLambdaFunction(appFn, {
|
||||
probot: createProbot({ overrides: { privateKey } })
|
||||
});
|
||||
|
||||
export { handler };
|
||||
4
netlify/functions/validate-pr/package.json
Normal file
4
netlify/functions/validate-pr/package.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "mackorone-playlist-pr-bot",
|
||||
"version": "1.0.0"
|
||||
}
|
||||
Reference in New Issue
Block a user