Remove redundant ping pong route
This commit is contained in:
2
appFn.ts
2
appFn.ts
@@ -8,8 +8,6 @@ import { getPlaylistIdFromUrl } from './getPlaylistIdFromUrl';
|
|||||||
type ReviewEvent = 'REQUEST_CHANGES' | 'COMMENT' | 'APPROVE';
|
type ReviewEvent = 'REQUEST_CHANGES' | 'COMMENT' | 'APPROVE';
|
||||||
|
|
||||||
const appFn: ApplicationFunction = (app: Probot, { getRouter }) => {
|
const appFn: ApplicationFunction = (app: Probot, { getRouter }) => {
|
||||||
getRouter!('/ping').get('/pong', (_, res) => res.sendStatus(200));
|
|
||||||
|
|
||||||
app.on(
|
app.on(
|
||||||
['pull_request.opened', 'pull_request.synchronize'],
|
['pull_request.opened', 'pull_request.synchronize'],
|
||||||
async ({ payload, octokit, log }) => {
|
async ({ payload, octokit, log }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user