Skip to content

Commit cc786bb

Browse files
nVitiusroboquat
authored andcommitted
Send prebuild info to context if available
1 parent a476438 commit cc786bb

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

components/dashboard/src/projects/Project.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,17 @@ export default function () {
333333
)}
334334
</a>
335335
<span className="flex-grow" />
336-
<a href={gitpodHostUrl.withContext(`${branch.url}`).toString()}>
336+
<a
337+
href={
338+
prebuild
339+
? gitpodHostUrl
340+
.withContext(
341+
`open-prebuild/${prebuild.info.id}/${prebuild.info.changeUrl}`,
342+
)
343+
.toString()
344+
: gitpodHostUrl.withContext(`${branch.url}`).toString()
345+
}
346+
>
337347
<button
338348
className={`primary mr-2 py-2 opacity-0 group-hover:opacity-100`}
339349
>

0 commit comments

Comments
 (0)