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}";