From dfdfdd91fe3e6862a97c81b36725531b448f030f Mon Sep 17 00:00:00 2001 From: husker Date: Tue, 2 Jun 2026 22:55:09 +0200 Subject: [PATCH] "View job run" link in Claude's comment points to an unrelated, older run (#18) Co-authored-by: Dennis --- src/entrypoints/update-comment-link.ts | 2 +- src/github/context.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entrypoints/update-comment-link.ts b/src/entrypoints/update-comment-link.ts index 1121204..d8cebf5 100644 --- a/src/entrypoints/update-comment-link.ts +++ b/src/entrypoints/update-comment-link.ts @@ -32,7 +32,7 @@ async function run() { const client = createClient(githubToken); const serverUrl = GITEA_SERVER_URL; - const jobUrl = `${serverUrl}/${owner}/${repo}/actions/runs/${process.env.GITHUB_RUN_NUMBER}`; + const jobUrl = `${serverUrl}/${owner}/${repo}/actions/runs/${process.env.GITHUB_RUN_ID}`; let comment; let isPRReviewComment = false; diff --git a/src/github/context.ts b/src/github/context.ts index 6da74fc..4e0d866 100644 --- a/src/github/context.ts +++ b/src/github/context.ts @@ -55,7 +55,7 @@ export function parseGitHubContext(): ParsedGitHubContext { } const commonFields = { - runId: process.env.GITHUB_RUN_NUMBER!, + runId: process.env.GITHUB_RUN_ID!, eventName: context.eventName, eventAction: context.payload.action, repository: {