diff --git a/.github/workflows/code-review.yml b/.github/workflows/code-review.yml index c2ef4d1..918fb4e 100644 --- a/.github/workflows/code-review.yml +++ b/.github/workflows/code-review.yml @@ -2,6 +2,8 @@ name: Code Review on: issue_comment: types: [created, edited] + pull_request: + types: [opened, reopened, synchronize] jobs: code-review: @@ -11,7 +13,7 @@ jobs: uses: ingress-it-solutions/gitea-code-review-action@v1.9 with: PROGRAMMING_LANGUAGE: 'c#' - OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + OPENAI_TOKEN: ${{ secrets.OPENAI_API_KEY }} + GITHUB_TOKEN: ${{ secrets.TOKEN }} FULL_REVIEW_COMMENT: 'openai' REVIEW_COMMENT_PREFIX: 'openai:' \ No newline at end of file