arXiv Science⌕ Search

arXiv subjects

Panya Trakoolgerntong

Publications and source records attributed to Panya Trakoolgerntong.

2 recordsLinked to original sources

Which Link Should I Look At First?: Automated Link Ranking in Code Reviews

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.

cs.SE↗

AILINKPREVIEWER: Enhancing Code Reviews with LLM-Powered Link Previews

Code review is a key practice in software engineering, where developers evaluate code changes to ensure quality and maintainability. Links to issues and external resources are often included in Pull Requests (PRs) to provide additional context, yet they are typically discarded in automated tasks such as PR summarization and code review comment generation. This limits the richness of information available to reviewers and increases cognitive load by forcing context-switching. To address this gap, we present AILINKPREVIEWER, a tool that leverages Large Language Models (LLMs) to generate previews of links in PRs using PR metadata, including titles, descriptions, comments, and link body content. We analyzed 50 engineered GitHub repositories and compared three approaches: Contextual LLM summaries, Non-Contextual LLM summaries, and Metadata-based previews. The results in metrics such as BLEU, BERTScore, and compression ratio show that contextual summaries consistently outperform other methods. However, in a user study with seven participants, most preferred non-contextual summaries, suggesting a trade-off between metric performance and perceived usability. These findings demonstrate the potential of LLM-powered link previews to enhance code review efficiency and to provide richer context for developers and automation in software engineering. The video demo is available at https://www.youtube.com/watch?v=h2qH4RtrB3E, and the tool and its source code can be found at https://github.com/c4rtune/AILinkPreviewer.

cs.SE↗