Skip to content

feat: make pull request titles clickable (closes #61)#64

Closed
Ai-chan-0411 wants to merge 1 commit intoO2sa:mainfrom
Ai-chan-0411:feat/clickable-pr-titles
Closed

feat: make pull request titles clickable (closes #61)#64
Ai-chan-0411 wants to merge 1 commit intoO2sa:mainfrom
Ai-chan-0411:feat/clickable-pr-titles

Conversation

@Ai-chan-0411
Copy link
Copy Markdown
Contributor

Summary

  • Add title and url fields to the GitHub GraphQL pullRequests query
  • Pass PR URL through the type system (PullRequestNodeUserResult) and scoring logic
  • Wrap PR titles in <a href={pr.url} target="_blank" rel="noopener noreferrer"> tags in the TopList component
  • Fix pre-existing bug where PR titles displayed the repository name instead of the actual PR title

Closes #61

Test plan

  • Verify PR titles in the "Top Pull Requests" section are rendered as clickable links
  • Verify clicking a PR title opens the correct GitHub PR page in a new tab
  • Verify links have target="_blank" and rel="noopener noreferrer" attributes
  • Verify repository titles (Top Repositories) remain as plain text (no link)
  • Verify PRs without titles gracefully show "Untitled Pull Request"

🤖 Generated with Claude Code

Add `title` and `url` fields to the GitHub GraphQL pullRequests query,
pass them through the type system and scoring logic, and wrap PR titles
in the TopList component with anchor tags linking to the GitHub PR page.

Also fixes a pre-existing bug where PR titles incorrectly displayed the
repository name instead of the actual pull request title.

Closes O2sa#61

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 12, 2026

@Ai-chan-0411 is attempting to deploy a commit to the osama's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

Thank you for the pull request! ✅

A maintainer will review this soon. Please be patient while we take a look. 🙌

@Ai-chan-0411
Copy link
Copy Markdown
Contributor Author

Superseded by #66 which includes additional improvements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make pull request titles clickable (link to GitHub PR)

1 participant