Skip to content

Commit b5b1c3c

Browse files
committed
Fix job url fetching from run
1 parent a22e680 commit b5b1c3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotnet-trx/TrxCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ static void GitHubReport(TrxSettings settings, Summary summary, StringBuilder de
334334
long commentId = 0;
335335

336336
if (jobUrl == null && TryExecute("gh",
337-
["api", $"repos/devlooped/dotnet-trx/actions/runs/{runId}/jobs", "--jq", $"[.jobs[] | select(.name == \"{jobName}\") | .id]"],
337+
["api", $"repos/{repo}/actions/runs/{runId}/jobs", "--jq", $"[.jobs[] | select(.name == \"{jobName}\") | .id]"],
338338
out var jobsJson) && jobsJson != null && JsonSerializer.Deserialize<long[]>(jobsJson) is { Length: 1 } jobIds)
339339
{
340340
jobUrl = $"{serverUrl}/{repo}/actions/runs/{runId}/job/{jobIds[0]}?pr={pr}";

0 commit comments

Comments
 (0)