From 80e39a156f0031f7f509124dfec88747c5ed428d Mon Sep 17 00:00:00 2001 From: Corantin Date: Thu, 17 Oct 2024 12:32:43 -0400 Subject: [PATCH] :bug: Fixed incorrect runUrl in GitHub workflow - 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 --- .github/workflows/ai-code-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ai-code-review.yml b/.github/workflows/ai-code-review.yml index 0119a75c..14d07640 100644 --- a/.github/workflows/ai-code-review.yml +++ b/.github/workflows/ai-code-review.yml @@ -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,