Skip to content

Commit b55d028

Browse files
committed
Added /deploy endpoint
It's doing nothing for now
1 parent edd27c8 commit b55d028

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Application } from 'probot' // eslint-disable-line no-unused-vars
22
import { CommentParser, LinkEntry } from './CommentParser'
33
import { SnippetResolver } from './SnippetResolver'
4+
import express from 'express'
45

56
export = (app: Application) => {
67
const parser = new CommentParser;
@@ -109,4 +110,12 @@ ${snippet.results.results.length ? snippet.results.results.map(issue => `${issue
109110
responses.delete(comment.id);
110111
}
111112
});
113+
114+
const router = app.route();
115+
router.use(express.json());
116+
117+
app.route().post('/deploy', (req, res) => {
118+
app.log(req.body);
119+
res.sendStatus(200);
120+
});
112121
}

0 commit comments

Comments
 (0)