Possible function export fix?

This commit is contained in:
Maciej Pędzich 2024-01-15 07:20:19 +01:00
parent 3990e29927
commit 5c77b3d593
4 changed files with 6 additions and 3 deletions

View File

@ -5,7 +5,7 @@ import { getPlaylistIdFromUrl } from './getPlaylistIdFromUrl';
type ReviewEvent = 'REQUEST_CHANGES' | 'COMMENT' | 'APPROVE';
export const appFn = (app: Probot) => {
const appFn = (app: Probot) => {
app.on(
['pull_request.opened', 'pull_request.synchronize'],
async ({ payload, octokit }) => {
@ -218,3 +218,5 @@ export const appFn = (app: Probot) => {
}
);
};
export { appFn };

View File

@ -3,7 +3,7 @@ import {
createLambdaFunction
} from '@probot/adapter-aws-lambda-serverless';
import { appFn } from '../../../appFn';
import { appFn } from './appFn';
const privateKey = (process.env.PRIVATE_KEY as string).replace(/\\n/gm, '\n');

View File

@ -8,5 +8,6 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
},
"include": ["netlify/functions/validate-pr"]
}