Files
demo-workflow-repo/.gitea/workflows/build.yml

18 lines
493 B
YAML

name: Code Review
on:
issue_comment:
types: [created, edited]
jobs:
code-review:
runs-on: ubuntu-latest
if: startsWith(github.event.comment.body, 'openai')
steps:
- name: OpenAI Code Review
uses: bhavik/gitea-code-review-action@v0.1
with:
PROGRAMMING_LANGUAGE: 'JavaScript'
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
FULL_REVIEW_COMMENT: 'openai'
REVIEW_COMMENT_PREFIX: 'openai:'