From bd5c30fba66e8d59438419c2c0b215aaeb0d9fb5 Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Mon, 29 Sep 2025 12:54:26 -0300 Subject: [PATCH] Fix job url fetching from run --- src/dotnet-trx/TrxCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dotnet-trx/TrxCommand.cs b/src/dotnet-trx/TrxCommand.cs index 2a18c4c..20c3982 100644 --- a/src/dotnet-trx/TrxCommand.cs +++ b/src/dotnet-trx/TrxCommand.cs @@ -334,7 +334,7 @@ static void GitHubReport(TrxSettings settings, Summary summary, StringBuilder de long commentId = 0; if (jobUrl == null && TryExecute("gh", - ["api", $"repos/devlooped/dotnet-trx/actions/runs/{runId}/jobs", "--jq", $"[.jobs[] | select(.name == \"{jobName}\") | .id]"], + ["api", $"repos/{repo}/actions/runs/{runId}/jobs", "--jq", $"[.jobs[] | select(.name == \"{jobName}\") | .id]"], out var jobsJson) && jobsJson != null && JsonSerializer.Deserialize(jobsJson) is { Length: 1 } jobIds) { jobUrl = $"{serverUrl}/{repo}/actions/runs/{runId}/job/{jobIds[0]}?pr={pr}";