mirror of
https://github.com/maciejpedzich/playlist-entry-validator.git
synced 2024-11-27 16:05:48 +01:00
Possible function export fix?
This commit is contained in:
parent
3990e29927
commit
5c77b3d593
@ -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 };
|
@ -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');
|
||||
|
||||
|
@ -8,5 +8,6 @@
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"skipLibCheck": true
|
||||
}
|
||||
},
|
||||
"include": ["netlify/functions/validate-pr"]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user