diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml index 697993c..8f6faca 100644 --- a/.github/workflows/review.yml +++ b/.github/workflows/review.yml @@ -10,8 +10,8 @@ jobs: - name: Fetch code run: | git clone -b "${{github.ref_name}}" "$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" . + git checkout ${{ github.event.pull_request.head.sha }} git fetch origin ${{ github.event.pull_request.base.ref }} - git branch -r - name: Run AI Review uses: docker://git.zakscode.com/zakscode/ai-reporter:latest diff --git a/README.md b/README.md index 9ed674a..f68aba9 100644 --- a/README.md +++ b/README.md @@ -68,8 +68,8 @@ jobs: - name: Fetch code run: | git clone -b "${{github.ref_name}}" "$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" . + git checkout ${{ github.event.pull_request.head.sha }} git fetch origin ${{ github.event.pull_request.base.ref }} - git branch -r - name: Run AI Review uses: docker://git.zakscode.com/zakscode/ai-reporter:latest