Skip to content

Commit

Permalink
checkout pr commit sha
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Jun 11, 2024
1 parent 81643b4 commit a88d5a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/genai-commander.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
with:
submodules: "recursive"
fetch-depth: 10
ref: ${{ github.event.pull_request.base.sha }}
- uses: actions/setup-node@v4
with:
node-version: "20"
Expand All @@ -37,7 +38,7 @@ jobs:
run: node packages/cli/built/genaiscript.cjs run pr-review --out ./temp/genai/pr-review -prc --out-trace $GITHUB_STEP_SUMMARY
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_COMMIT_SHA: ${{ github.event.pull_request.base.sha}}
GITHUB_COMMIT_SHA: ${{ github.event.pull_request.base.sha }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_TYPE: ${{ secrets.OPENAI_API_TYPE }}
OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }}
Expand Down

0 comments on commit a88d5a8

Please sign in to comment.