How Developers Modify Pull Requests in Code Review

被引:4
|
作者
Jiang, Jing [1 ]
Lv, Jiangfeng [1 ]
Zheng, Jiateng [1 ]
Zhang, Li [1 ]
机构
[1] Beihang Univ, State Key Lab Software Dev Environm, Beijing 100191, Peoples R China
基金
中国国家自然科学基金;
关键词
Software development management; Open source software; Manuals; Control systems; Research and development; Manifolds; Laboratories; Code review; GitHub; modification; open-source software (OSS); pull request; RECOMMENDATION;
D O I
10.1109/TR.2021.3093159
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
In pull-based development process, contributors submit their code to open-source projects by pull requests, which are accepted or rejected by reviewers. Contributors may modify their code, which causes several iterations of code review process, and makes code reviews time-consuming for both contributors and reviewers. In this article, we set out to study pull request modifications in a code review process. We collect nine projects on GitHub with 104 307 pull requests, and investigate pull request modifications through analyzing added commits after pull requests' submission. By studying four research questions, we conclude our major findings as follow. First, 34.56% of collected pull requests have modifications. Pull requests with modifications have longer lifetime but higher pass rates. Second, we conclude eight modification types indicating why pull requests are modified. Third, we propose a novel method called MClassify to automatically classify pull request modifications, which achieves the accuracy of 0.807. Fourth, various modification types affect code review differently from the perspective of lifetime and pass rate. Pull requests with source control system management modifications have the longest lifetime. These findings enable developers and researchers to understand a pull-based code review process better and make improvements.
引用
收藏
页码:1325 / 1339
页数:15
相关论文
共 50 条
  • [1] How do Developers Improve Code Readability? An Empirical Study of Pull Requests
    Dantas, Carlos Eduardo C.
    Rocha, Adriano M.
    Maia, Marcelo A.
    2023 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION, ICSME, 2023, : 110 - 122
  • [2] How Developers Document Pull Requests with External References
    Zampetti, Fiorella
    Ponzanelli, Luca
    Bavota, Gabriele
    Mocci, Andrea
    Di Penta, Massimiliano
    Lanza, Michele
    2017 IEEE/ACM 25TH INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC), 2017, : 23 - 33
  • [3] Developers Assignment for Analyzing Pull Requests
    de Lima Junior, Manoel Limeira
    Soares, Daricelio Moreira
    Plastino, Alexandre
    Murta, Leonardo
    30TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING, VOLS I AND II, 2015, : 1567 - 1572
  • [4] How do Multiple Pull Requests Change the Same Code: A Study of Competing Pull Requests in GitHub
    Zhang, Xin
    Chen, Yang
    Gu, Yongfeng
    Zou, Weiqin
    Xie, Xiaoyuan
    Jia, Xiangyang
    Xuan, Jifeng
    PROCEEDINGS 2018 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME), 2018, : 228 - 239
  • [5] How Do Software Developers Use ChatGPT? An Exploratory Study on GitHub Pull Requests
    Chouchen, Moataz
    Bessghaier, Narjes
    Begoug, Mahi
    Ouni, Ali
    AlOmar, Eman Abdullah
    Mkaouer, Mohamed Wiem
    2024 IEEE/ACM 21ST INTERNATIONAL CONFERENCE ON MINING SOFTWARE REPOSITORIES, MSR, 2024, : 212 - 216
  • [6] Beyond the Code Itself: How Programmers Really Look at Pull Requests
    Ford, Denae
    Behroozi, Mahnaz
    Serebrenik, Alexander
    Parnin, Chris
    2019 IEEE/ACM 41ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: SOFTWARE ENGINEERING IN SOCIETY (ICSE-SEIS 2019), 2019, : 51 - 60
  • [7] Code Review Quality: How Developers See It
    Kononenko, Oleksii
    Baysal, Olga
    Godfrey, Michael W.
    2016 IEEE/ACM 38TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE), 2016, : 1028 - 1038
  • [8] Effects of Adopting Code Review Bots on Pull Requests to OSS Projects
    Wessel, Mairieli
    Serebrenik, Alexander
    Wiese, Igor
    Steinmacher, Igor
    Gerosa, Marco A.
    2020 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2020), 2020, : 1 - 11
  • [9] Enhancing Developers' Support on Pull Requests Activities with Software Bots
    Wessel, Mairieli
    PROCEEDINGS OF THE 28TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE '20), 2020, : 1674 - 1677
  • [10] Code smells in pull requests: An exploratory study
    Azeem, Muhammad Ilyas
    Shafiq, Saad
    Mashkoor, Atif
    Egyed, Alexander
    SOFTWARE-PRACTICE & EXPERIENCE, 2024, 54 (03): : 419 - 436