An Empirical Study on the Amount of Changes Required for Merge Request Acceptance

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Kansab, Samah, Sayagh, Mohammed, Bordeleau, Francis, Tizghadam, Ali
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916873688317952
author Kansab, Samah
Sayagh, Mohammed
Bordeleau, Francis
Tizghadam, Ali
author_facet Kansab, Samah
Sayagh, Mohammed
Bordeleau, Francis
Tizghadam, Ali
contents Code review (CR) is essential to software development, helping ensure that new code is properly integrated. However, the CR process often involves significant effort, including code adjustments, responses to reviewers, and continued implementation. While past studies have examined CR delays and iteration counts, few have investigated the effort based on the volume of code changes required, especially in the context of GitLab Merge Requests (MRs), which remains underexplored. In this paper, we define and measure CR effort as the amount of code modified after submission, using a dataset of over 23,600 MRs from four GitLab projects. We find that up to 71% of MRs require adjustments after submission, and 28% of these involve changes to more than 200 lines of code. Surprisingly, this effort is not correlated with review time or the number of participants. To better understand and predict CR effort, we train an interpretable machine learning model using metrics across multiple dimensions: text features, code complexity, developer experience, review history, and branching. Our model achieves strong performance (AUC 0.84-0.88) and reveals that complexity, experience, and text features are key predictors. Historical project characteristics also influence current review effort. Our findings highlight the feasibility of using machine learning to explain and anticipate the effort needed to integrate code changes during review.
format Preprint
id arxiv_https___arxiv_org_abs_2507_23640
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle An Empirical Study on the Amount of Changes Required for Merge Request Acceptance
Kansab, Samah
Sayagh, Mohammed
Bordeleau, Francis
Tizghadam, Ali
Software Engineering
Code review (CR) is essential to software development, helping ensure that new code is properly integrated. However, the CR process often involves significant effort, including code adjustments, responses to reviewers, and continued implementation. While past studies have examined CR delays and iteration counts, few have investigated the effort based on the volume of code changes required, especially in the context of GitLab Merge Requests (MRs), which remains underexplored. In this paper, we define and measure CR effort as the amount of code modified after submission, using a dataset of over 23,600 MRs from four GitLab projects. We find that up to 71% of MRs require adjustments after submission, and 28% of these involve changes to more than 200 lines of code. Surprisingly, this effort is not correlated with review time or the number of participants. To better understand and predict CR effort, we train an interpretable machine learning model using metrics across multiple dimensions: text features, code complexity, developer experience, review history, and branching. Our model achieves strong performance (AUC 0.84-0.88) and reveals that complexity, experience, and text features are key predictors. Historical project characteristics also influence current review effort. Our findings highlight the feasibility of using machine learning to explain and anticipate the effort needed to integrate code changes during review.
title An Empirical Study on the Amount of Changes Required for Merge Request Acceptance
topic Software Engineering
url https://arxiv.org/abs/2507.23640