Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add links to pull requests #81

Merged
merged 1 commit into from
Oct 21, 2023
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: 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