Skip to content

Commit

Permalink
fix pr/branch rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Aug 26, 2024
1 parent f29dec2 commit 9728ffd
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions pages/workflow/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,16 @@ function WorkflowResultDetail() {
target="_blank"
rel="noopener noreferrer"
href={`https://github.com/${workflowResult.git_repo}`}
>{workflowResult?.git_repo}</a> - {workflowResult.branch_name}
{workflowResult?.pr_number ?? <span>
<a
>{workflowResult?.git_repo}</a>
&nbsp;on branch {workflowResult.branch_name}
{workflowResult?.pr_number ? <span>
&nbsp;(PR <a
className="text-blue-500 hover:text-blue-700 underline hover:no-underline "
href={`https://github.com/${workflowResult.git_repo}/pull/${workflowResult.pr_number}`}>{workflowResult.pr_number}</a> - {workflowResult?.author}
href={`https://github.com/${workflowResult.git_repo}/pull/${workflowResult.pr_number}`}>
#{workflowResult.pr_number}
</a> by {workflowResult?.author || "Unknown"})
</span>
}
: ''}

</Table.Cell>
</Table.Row>
Expand Down

0 comments on commit 9728ffd

Please sign in to comment.