Skip to content

Commit 40db8d1

Browse files
committed
Add link to commit SHA in timeline table
1 parent 21ca6ed commit 40db8d1

File tree

1 file changed

+13
-3
lines changed
  • site/frontend/src/pages/status_new

1 file changed

+13
-3
lines changed

site/frontend/src/pages/status_new/page.vue

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,18 @@ function PullRequestLink({request}: {request: BenchmarkRequest}) {
123123
);
124124
}
125125
126+
function CommitSha({request}: {request: BenchmarkRequest}): string {
127+
if (request.requestType === "Release") {
128+
return request.tag;
129+
}
130+
const sha = request.tag;
131+
return (
132+
<a href={`https://github.com/rust-lang/rust/commit/${sha}`}>
133+
{sha.substring(0, 13)}
134+
</a>
135+
);
136+
}
137+
126138
function getJobCompletion(
127139
req: BenchmarkRequest,
128140
collectors: CollectorConfig[]
@@ -174,9 +186,7 @@ loadStatusData(loading);
174186
<tr :class="getRequestRowClassName(req)">
175187
<td><PullRequestLink :request="req" /></td>
176188
<td>{{ req.requestType }}</td>
177-
<td>
178-
{{ shortenTag(req.tag) }}
179-
</td>
189+
<td><CommitSha :request="req" /></td>
180190
<td>
181191
{{ formatStatus(req.status)
182192
}}{{

0 commit comments

Comments
 (0)