Skip to content

Commit 8b63db2

Browse files
committed
Show pin indicator for pinned release row
1 parent cc855fd commit 8b63db2

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

packages/app/app/components/Commits.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ async function goPrevPage() {
202202
<span class="opacity-50 flex-none whitespace-nowrap">
203203
{{ useTimeAgo(commit.authoredDate) }}
204204
</span>
205+
<UIcon
206+
v-if="commit.pinned"
207+
name="i-ph-push-pin"
208+
class="opacity-70 flex-none"
209+
aria-label="Pinned release"
210+
/>
205211
<UButton
206212
v-if="commit.unverified && !commit.branch"
207213
color="neutral"

packages/app/server/api/repo/commits.get.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ export default defineEventHandler(async (event) => {
265265
abbreviatedOid,
266266
message: commitTitle ?? row.sha,
267267
unverified: !commitTitle,
268+
pinned: pinnedSha === row.sha,
268269
branch: meta?.branch ?? null,
269270
authoredDate: new Date(row.uploadedAt).toISOString(),
270271
url: `https://github.com/${query.owner}/${query.repo}/commit/${row.sha}`,

0 commit comments

Comments
 (0)