An Empirical Study on Refactoring-Inducing Pull Requests
Fl\'avia Coelho, Nikolaos Tsantalis, Tiago Massoni, and Everton L. G., Alves

TL;DR
This study analyzes refactoring-inducing pull requests in open-source projects, revealing their distinct characteristics and the influence of review discussions on code refactoring, providing insights for improving code review practices.
Contribution
It offers the first empirical comparison between refactoring-inducing and non-refactoring-inducing PRs, highlighting their unique features and the role of review comments in inducing refactorings.
Findings
30.2% of PRs are refactoring-inducing
Refactoring-inducing PRs differ in commits, churn, and discussion length
Review comments often trigger refactoring edits
Abstract
Background: Pull-based development has shaped the practice of Modern Code Review (MCR), in which reviewers can contribute code improvements, such as refactorings, through comments and commits in Pull Requests (PRs). Past MCR studies uniformly treat all PRs, regardless of whether they induce refactoring or not. We define a PR as refactoring-inducing, when refactoring edits are performed after the initial commit(s), as either a result of discussion among reviewers or spontaneous actions carried out by the PR developer. Aims: This mixed study (quantitative and qualitative) explores code reviewing-related aspects intending to characterize refactoring-inducing PRs. Method: We hypothesize that refactoring-inducing PRs have distinct characteristics than non-refactoring-inducing ones and thus deserve special attention and treatment from researchers, practitioners, and tool builders. To…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
