mirror of
https://github.com/status-im/github-comment-manager.git
synced 2025-02-21 13:48:09 +00:00
add /builds/:pr/refresh for just re-rendering the comment
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
4860fb4a59
commit
50c8879a6f
@ -34,6 +34,11 @@ const App = (ghc) => {
|
||||
}
|
||||
})
|
||||
|
||||
router.post('/builds/:pr/refresh', async (ctx) => {
|
||||
/* just re-render the comment */
|
||||
await ghc.update(ctx.params.pr)
|
||||
})
|
||||
|
||||
router.get('/builds/:pr', async (ctx) => {
|
||||
/* TODO add validation of id parameter */
|
||||
const builds = await ghc.db.getBuilds(ctx.params.pr)
|
||||
|
Loading…
x
Reference in New Issue
Block a user