From 88bd9b9b419c6aa2ddeb1e4b1cc4410e78a30e23 Mon Sep 17 00:00:00 2001 From: Emanuel Braz Date: Mon, 13 Nov 2023 14:33:41 -0300 Subject: [PATCH] refac: remove await of createReviewOnPr --- .github/workflows/code-review.yaml | 1 - code-review/action.js | 2 +- package.json | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/code-review.yaml b/.github/workflows/code-review.yaml index 72a2bf3..cc6326f 100644 --- a/.github/workflows/code-review.yaml +++ b/.github/workflows/code-review.yaml @@ -25,5 +25,4 @@ jobs: exclude: "**/*.json, **/*.md, **/*.g.dart" append_prompt: | - Give a maximum of 4 suggestions - - Do not suggest code formatting issues. - Do not suggest imports issues. \ No newline at end of file diff --git a/code-review/action.js b/code-review/action.js index a3f3198..987406c 100644 --- a/code-review/action.js +++ b/code-review/action.js @@ -264,7 +264,7 @@ async function main() { const comments = await analyzeCode(filteredDiff, prDetails); if (comments.length > 0) { - await createReviewOnPr( + createReviewOnPr( prDetails.owner, prDetails.repo, prDetails.pull_number, diff --git a/package.json b/package.json index d9fb33c..cc1df9d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "braz-actions", - "version": "0.1.0", + "version": "0.1.1", "private": true, "description": "GitHub Actions", "main": "create-update-release/action.js",