diff --git a/.github/workflows/code-review.yaml b/.github/workflows/code-review.yaml index bfee6b3f499..49491160572 100644 --- a/.github/workflows/code-review.yaml +++ b/.github/workflows/code-review.yaml @@ -5,17 +5,15 @@ permissions: pull-requests: write on: - workflow_dispatch: -# on: -# pull_request_target: -# branches: -# - master -# - release-* -# paths-ignore: -# - 'docs/**' -# - '**.md' -# - 'go.mod' -# - 'go.sum' + pull_request_target: + branches: + - master + - release-* + paths-ignore: + - 'docs/**' + - '**.md' + - 'go.mod' + - 'go.sum' jobs: review-code: @@ -25,4 +23,5 @@ jobs: uses: oilbeater/smart-review@main with: apiKey: ${{ secrets.OPENAI_API_KEY }} - githubToken: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + githubToken: ${{ secrets.GITHUB_TOKEN }} + apiBaseUrl: ${{ secrets.OPENAI_API_BASE_URL }} \ No newline at end of file