gitea-code-review-action/.github/workflows/main.yaml
Bhavik MacBook PRO 16 be1c0ee191 FIXED ISSUE FOR GITHUB
2023-04-23 16:38:33 +05:30

28 lines
No EOL
732 B
YAML

name: Code Review
on:
pull_request:
types: [opened]
issue_comment:
types: [created, edited]
jobs:
code-review:
if: |
github.event_name == 'pull_request' ||
(github.event.comment.user.login == 'vandanafuletra' &&
startsWith(github.event.comment.body, 'openai'))
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: hmarr/debug-action@v2
- name: Gitea Code Review
uses: ./
with:
PROGRAMMING_LANGUAGE: 'JavaScript'
REVIEW_COMMENT_PREFIX: 'openai:'
FULL_REVIEW_COMMENT: 'openai'
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
SOURCE_AT: 'github'