Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/components/github-activity-days.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,17 +219,15 @@ function WorkUnitRow({
<p className="wrap-anywhere">{item.summary}</p>
)}
<WorkUnitFacts item={item} />
{item.destination === null ? null : (
{item.destination === null || item.kind === "pull-request" ? null : (
<a
className="site-text-link inline-flex min-h-11 items-center text-sm"
href={item.destination.url}
aria-label={item.destination.label}
target="_blank"
rel="noopener noreferrer"
>
{item.kind === "pull-request"
? "View pull request ↗"
: "View latest commit ↗"}
View latest commit ↗
</a>
)}
</div>
Expand Down
3 changes: 1 addition & 2 deletions tests/github-activity-days.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ test("the initial homepage HTML includes saved IST work across UTC midnight with
<GitHubActivityDays days={days} preview now="2026-09-07T01:00:00.000Z" />
);
expect(html).toContain("oliphaunt");
expect(html).toContain('href="https://github.com/example/site/pull/1"');
expect(html).toContain("Open pull request 1 on GitHub");
expect(html).not.toContain('href="https://github.com/example/site/pull/1"');
expect(html).toContain("2 updates across 2 repos");
expect(html).not.toContain("+4,474");
expect(html).not.toContain("−3,427");
Expand Down
Loading