Skip to content

Commit

Permalink
🐛 Fixed incorrect runUrl in GitHub workflow
Browse files Browse the repository at this point in the history
- Corrected the URL used to link to specific job runs in the AI code review workflow
- The URL now correctly includes the container ID, ensuring that links point to the correct job instance
  • Loading branch information
Corantin committed Oct 17, 2024
1 parent 4d9edf1 commit 80e39a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ai-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
uses: actions/github-script@v6
with:
script: |
const runUrl = `https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ github.job }}`;
const runUrl = `https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ github.job.container.id }}`;
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,
Expand Down

0 comments on commit 80e39a1

Please sign in to comment.