You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/04/01 07:16:48 UTC

[camel] branch main updated: (chores) ci: fixed a few more syntax error on the comment script

This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new b16b0fe  (chores) ci: fixed a few more syntax error on the comment script
b16b0fe is described below

commit b16b0fe988c4d7070c7153947a752569995c976c
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Apr 1 09:16:01 2022 +0200

    (chores) ci: fixed a few more syntax error on the comment script
---
 .github/workflows/component-pr.yaml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/component-pr.yaml b/.github/workflows/component-pr.yaml
index fa191c9..576c174 100644
--- a/.github/workflows/component-pr.yaml
+++ b/.github/workflows/component-pr.yaml
@@ -87,10 +87,11 @@ jobs:
         with:
           github-token: ${{ secrets.GITHUB_TOKEN }}
           script: |
+            let fs = require('fs');
             let issue_number = Number(fs.readFileSync('./pr_number'));
-            github.rest.issues.createComment({
-              issue_number: issue_number,
+            await github.rest.issues.createComment({
               owner: context.repo.owner,
               repo: context.repo.repo,
+              issue_number: issue_number,
               body: "${{ env.result }}
             });