Which Link Should I Look At First?: Automated Link Ranking in Code Reviews
Panya Trakoolgerntong, Arus Thienmee, Patsathorn Chadbantern, Chaiyong Ragkhitwetsagul, Morakot Choetkiertikul, Tao Xiao, Patanamon Thongtanunam, Yasutaka Kamei
Abstract
Pull requests (PRs) on GitHub often include hyperlinks to issues, commits, and documentation that reviewers must manually inspect, which can lead to context switching and increased cognitive load. We conduct an empirical study of 486,423 PRs from 50 popular GitHub repositories and find that hyperlinks are pervasive, with an average of 4.69 links per PR description and a highly skewed distribution. Motivated by these findings, we propose an automated approach that ranks the links within a PR description by their contextual relevance. We compare techniques spanning lexical, semantic, and supervised methods, including TF-IDF, large language model (LLM)-based encoders, cross-encoder rerankers, and Learning-to-Rank (LTR). On a manually annotated dataset of 700 high-link-density PRs, our LTR model achieves the best ranking performance. We implement the approach as a GitHub Action, MonnetalX, which presents the ranked links together with summaries of the top-ranked resources. A human evaluation involving 14 participants shows that the ranked links help reviewers save time, stay focused, and reduce cognitive load, with 85.7% of participants rating the reduction in cognitive load as good or excellent. Our results show that links are pervasive in PR descriptions. LTR with lexical and semantic features performs best for link ranking, and link ranking benefits software developers by saving time, enabling greater focus, and reducing cognitive load.
Create a lesson
Metadata
- Categories
- cs.SE, cs.IR, cs.LG
- Comments
- Accepted at the 33rd Asia-Pacific Software Engineering Conference (APSEC 2026). 12 pages
Related papers
Did the Finding Go Away? Evidence for Closing Automated Code Review Findings
Shared title terminologycs.SEXuechun Luo, Weicheng Wang
Software Engineering After Human Comprehension? Review the Checks Instead of Code
Shared title terminologycs.SEChristoph Treude
FineCR: A Fine-Grained Benchmark for Evaluating LLMs on Raising Code Review and its Resolution
Shared title terminologycs.SETaufiqul Islam Khan, Shaowei Wang, Haoxiang Zhang et al.
LegoReview: Scaling Code Review Data with Verification from Pull Request Histories
Shared title terminologycs.SERuoyu Wang, Jierun Chen, Yuxin Jiang et al.
Information Needs in Code Review: What Can an Agent's Trajectory Answer?
Shared title terminologycs.SEHannah Estes, Saba Khanmohammadi, Amirali Rayegan et al.
What Do Explanations and Fixes Add to LLM Code Review? A Replication on Audited Benchmarks
Shared title terminologycs.SESabry E. Farrag