From 3fc8120d664dea883814014fbf846d47872bca98 Mon Sep 17 00:00:00 2001 From: Bhavik MacBook PRO 16 Date: Wed, 5 Apr 2023 16:12:10 +0530 Subject: [PATCH 1/2] Fixed issue with Action --- .github/workflows/main.yaml | 8 ++++---- action.yaml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index ce6e207..fc15106 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -10,8 +10,8 @@ jobs: code-review: if: | github.event_name == 'pull_request' || - (github.event.comment.user.login == 'adshao' && - startsWith(github.event.comment.body, 'chatgpt')) + (github.event.comment.user.login == 'vandanafuletra' && + startsWith(github.event.comment.body, 'openai')) runs-on: ubuntu-latest steps: - name: Checkout @@ -21,7 +21,7 @@ jobs: uses: ./ with: PROGRAMMING_LANGUAGE: 'JavaScript' - REVIEW_COMMENT_PREFIX: 'chatgpt:' - FULL_REVIEW_COMMENT: 'chatgpt' + REVIEW_COMMENT_PREFIX: 'openai:' + FULL_REVIEW_COMMENT: 'openai' OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }} GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/action.yaml b/action.yaml index 622a23b..a1bb7b0 100644 --- a/action.yaml +++ b/action.yaml @@ -1,17 +1,17 @@ name: Gitea Code Review -description: A GitHub Action that uses OpenAI ChatGPT to review code in pull request. +description: A GitHub Action that uses OpenAI to review code in pull request. inputs: PROGRAMMING_LANGUAGE: description: 'The programming language used in the GitHub repository. If not provided, the detected programming language will be used.' default: '' FULL_REVIEW_COMMENT: description: 'The comment to trigger a code review for the pull request.' - default: 'chatgpt' + default: 'openai' REVIEW_COMMENT_PREFIX: description: 'The comment prefix to trigger a code review with the comment content.' - default: 'chatgpt:' + default: 'openai:' OPENAI_TOKEN: - description: 'The API token for the OpenAI ChatGPT API.' + description: 'The API token for the OpenAI API.' required: true GITHUB_TOKEN: description: 'The API token for the Github API.' From 3072ce32776392c949ef08a56587c4b666a829ff Mon Sep 17 00:00:00 2001 From: Bhavik MacBook PRO 16 Date: Wed, 5 Apr 2023 16:18:48 +0530 Subject: [PATCH 2/2] Fixed issue with Action --- .github/workflows/publish.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index bf78b44..8f62e60 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -9,9 +9,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: checkout@v3 + uses: actions/checkout@v3 - name: Setup Node.js - uses: setup-node@v3 + uses: actions/setup-node@v3 with: node-version: '16' - name: Install dependencies