Skip to content

Commit ecd0f7b

Browse files
authored
feat: add links to pull requests (#81)
1 parent e19debe commit ecd0f7b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/components/RepositoryContributionsCard.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ export const RepositoryContributionsCard = ({
3434
<div className="rounded p-1 outline outline-1">{totalCount}</div>
3535
</h2>
3636
<div className="max-h-[200px] overflow-auto flex flex-col gap-1 px-1">
37-
{nodes?.map(({ pullRequest: { state, title, id } }: any) => (
37+
{nodes?.map(({ pullRequest: { state, title, id, url } }: any) => (
3838
<div key={id} className="flex justify-between gap-2">
39-
<span>{title}</span>
39+
<a href={url} target="_blank">
40+
{title}
41+
</a>
4042
<span
4143
className={`h-fit rounded p-1 ${
4244
state === "MERGED"

src/graphql/queries.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ query ($login: String!, $from: DateTime!) {
1212
id
1313
title
1414
state
15+
url
1516
}
1617
}
1718
}

0 commit comments

Comments
 (0)