mirror of
https://github.com/maciejpedzich/playlist-entry-validator.git
synced 2024-11-28 00:15: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';
|
type ReviewEvent = 'REQUEST_CHANGES' | 'COMMENT' | 'APPROVE';
|
||||||
|
|
||||||
export const appFn = (app: Probot) => {
|
const appFn = (app: Probot) => {
|
||||||
app.on(
|
app.on(
|
||||||
['pull_request.opened', 'pull_request.synchronize'],
|
['pull_request.opened', 'pull_request.synchronize'],
|
||||||
async ({ payload, octokit }) => {
|
async ({ payload, octokit }) => {
|
||||||
@ -218,3 +218,5 @@ export const appFn = (app: Probot) => {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export { appFn };
|
@ -3,7 +3,7 @@ import {
|
|||||||
createLambdaFunction
|
createLambdaFunction
|
||||||
} from '@probot/adapter-aws-lambda-serverless';
|
} 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');
|
const privateKey = (process.env.PRIVATE_KEY as string).replace(/\\n/gm, '\n');
|
||||||
|
|
||||||
|
@ -8,5 +8,6 @@
|
|||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"skipLibCheck": true
|
"skipLibCheck": true
|
||||||
}
|
},
|
||||||
|
"include": ["netlify/functions/validate-pr"]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user