From fdb91ed451c2cabc3a457897365b4c163b30938c Mon Sep 17 00:00:00 2001 From: Alberto Gimeno Date: Tue, 26 Jun 2018 12:47:41 +0200 Subject: [PATCH] Adds missing await Since `createComment` returns a promise, if we don't await for it in case of error we will get an unhandled promise rejection which is bad because we won't be able to debug it and also because in future versions of Node.js the process will crash. --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 9659d5c..dd62aab 100644 --- a/index.html +++ b/index.html @@ -86,7 +86,7 @@ module.exports = robot => { const params = context.issue({ body: 'Hello World!' }); - context.github.issues.createComment(params); + await context.github.issues.createComment(params); }); }; {% endhighlight %}