mirror of
https://github.com/ingress-it-solutions/gitea-code-review-action.git
synced 2025-04-20 19:16:47 +00:00
27 lines
705 B
YAML
27 lines
705 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 }}
|