Skip to content

Commit

Permalink
Fix AI review
Browse files Browse the repository at this point in the history
  • Loading branch information
Corantin committed Sep 27, 2024
1 parent cb6644c commit e65f6f2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ai-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_ID: ${{ github.event.comment.node_id }}

- name: Fetch PR diff using GitHub API
- name: Fetch PR diff and head SHA using GitHub API
id: pr-diff
uses: actions/github-script@v6
with:
Expand All @@ -44,17 +44,17 @@ jobs:
repo: context.repo.repo,
pull_number: pr_number
});
return { diff, headSha: pr.data.head.sha };
const headSha = pr.data.head.sha;
// Set outputs for the diff and head SHA
core.setOutput("diff", diff);
core.setOutput("headSha", headSha);
- name: Log diff
env:
DIFF: ${{ steps.pr-diff.outputs.diff }}
run: echo "$DIFF"
run: echo "PR Diff: ${{ steps.pr-diff.outputs.diff }}"

- name: Log head sha
env:
HEAD_SHA: ${{ steps.pr-diff.outputs.headSha }}
run: echo "$HEAD_SHA"
- name: Log head SHA
run: echo "Head Commit SHA: ${{ steps.pr-diff.outputs.headSha }}"

- uses: rubensflinco/[email protected]
name: "Code Review by Gemini AI"
Expand Down

0 comments on commit e65f6f2

Please sign in to comment.