Skip to content

Commit

Permalink
🐛 Updated error message and run URL in AI code review workflow
Browse files Browse the repository at this point in the history
- Modified the runUrl to include job ID for more specific navigation
- Enhanced the commentBody to specify 'Code Review by Gemini AI' step, improving clarity when errors occur
  • Loading branch information
Corantin committed Oct 17, 2024
1 parent 448e00e commit 603f679
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ai-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ jobs:
uses: actions/github-script@v6
with:
script: |
const runUrl = `https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}`;
const commentBody = `Gemini Code Review encountered an error. [View the run here](${runUrl}).\n\nLogs from the Gemini review step may still contains some review before failing.`;
const runUrl = `https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ github.job }}`;
const commentBody = `Gemini Code Review encountered an error. [View the run here](${runUrl}).\n\nLogs from the `Code Review by Gemini AI` step may still contains some review before failing.`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
Expand Down

0 comments on commit 603f679

Please sign in to comment.