Merge pull request #3 from ingress-it-solutions/dev

Dev
This commit is contained in:
vandanafuletra 2023-04-05 16:22:18 +05:30 committed by GitHub
commit 548279af2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 10 deletions

View file

@ -10,8 +10,8 @@ jobs:
code-review: code-review:
if: | if: |
github.event_name == 'pull_request' || github.event_name == 'pull_request' ||
(github.event.comment.user.login == 'adshao' && (github.event.comment.user.login == 'vandanafuletra' &&
startsWith(github.event.comment.body, 'chatgpt')) startsWith(github.event.comment.body, 'openai'))
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
@ -21,7 +21,7 @@ jobs:
uses: ./ uses: ./
with: with:
PROGRAMMING_LANGUAGE: 'JavaScript' PROGRAMMING_LANGUAGE: 'JavaScript'
REVIEW_COMMENT_PREFIX: 'chatgpt:' REVIEW_COMMENT_PREFIX: 'openai:'
FULL_REVIEW_COMMENT: 'chatgpt' FULL_REVIEW_COMMENT: 'openai'
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }} OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

View file

@ -9,9 +9,9 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: checkout@v3 uses: actions/checkout@v3
- name: Setup Node.js - name: Setup Node.js
uses: setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: '16' node-version: '16'
- name: Install dependencies - name: Install dependencies

View file

@ -1,17 +1,17 @@
name: Gitea Code Review 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: inputs:
PROGRAMMING_LANGUAGE: PROGRAMMING_LANGUAGE:
description: 'The programming language used in the GitHub repository. If not provided, the detected programming language will be used.' description: 'The programming language used in the GitHub repository. If not provided, the detected programming language will be used.'
default: '' default: ''
FULL_REVIEW_COMMENT: FULL_REVIEW_COMMENT:
description: 'The comment to trigger a code review for the pull request.' description: 'The comment to trigger a code review for the pull request.'
default: 'chatgpt' default: 'openai'
REVIEW_COMMENT_PREFIX: REVIEW_COMMENT_PREFIX:
description: 'The comment prefix to trigger a code review with the comment content.' description: 'The comment prefix to trigger a code review with the comment content.'
default: 'chatgpt:' default: 'openai:'
OPENAI_TOKEN: OPENAI_TOKEN:
description: 'The API token for the OpenAI ChatGPT API.' description: 'The API token for the OpenAI API.'
required: true required: true
GITHUB_TOKEN: GITHUB_TOKEN:
description: 'The API token for the Github API.' description: 'The API token for the Github API.'