Skip to content

Commit

Permalink
Added /deploy endpoint
Browse files Browse the repository at this point in the history
It's doing nothing for now
  • Loading branch information
weirdan committed Dec 10, 2019
1 parent edd27c8 commit b55d028
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Application } from 'probot' // eslint-disable-line no-unused-vars
import { CommentParser, LinkEntry } from './CommentParser'
import { SnippetResolver } from './SnippetResolver'
import express from 'express'

export = (app: Application) => {
const parser = new CommentParser;
Expand Down Expand Up @@ -109,4 +110,12 @@ ${snippet.results.results.length ? snippet.results.results.map(issue => `${issue
responses.delete(comment.id);
}
});

const router = app.route();
router.use(express.json());

app.route().post('/deploy', (req, res) => {
app.log(req.body);
res.sendStatus(200);
});
}

0 comments on commit b55d028

Please sign in to comment.