Skip to content

Commit

Permalink
feat: add links to pull requests (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
Balastrong authored Oct 21, 2023
1 parent e19debe commit ecd0f7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/RepositoryContributionsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ export const RepositoryContributionsCard = ({
<div className="rounded p-1 outline outline-1">{totalCount}</div>
</h2>
<div className="max-h-[200px] overflow-auto flex flex-col gap-1 px-1">
{nodes?.map(({ pullRequest: { state, title, id } }: any) => (
{nodes?.map(({ pullRequest: { state, title, id, url } }: any) => (
<div key={id} className="flex justify-between gap-2">
<span>{title}</span>
<a href={url} target="_blank">
{title}
</a>
<span
className={`h-fit rounded p-1 ${
state === "MERGED"
Expand Down
1 change: 1 addition & 0 deletions src/graphql/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ query ($login: String!, $from: DateTime!) {
id
title
state
url
}
}
}
Expand Down

0 comments on commit ecd0f7b

Please sign in to comment.