An Empirical Study on GitHub Pull Requests’ Reactions

Author:

Batoun Mohamed Amine1ORCID,Yung Ka Lai2ORCID,Tian Yuan2ORCID,Sayagh Mohammed1ORCID

Affiliation:

1. École de Technologie Supérieure, Canada

2. Queen’s University, Canada

Abstract

The pull request mechanism is commonly used to propose source code modifications and get feedback from the community before merging them into a software repository. On GitHub, practitioners can provide feedback on a pull request by either commenting on the pull request or simply reacting to it using a set of pre-defined GitHub reactions, i.e., “Thumbs-up”, “Laugh”, “Hooray”, “Heart”, “Rocket”, “Thumbs-down”, “Confused”, and “Eyes”. While a large number of prior studies investigated how to improve different software engineering activities (e.g., code review and integration) by investigating the feedback on pull requests, they focused only on pull requests’ comments as a source of feedback. However, the GitHub reactions, according to our preliminary study, contain feedback that is not manifested within the comments of pull requests. In fact, our preliminary analysis of six popular projects shows that a median of 100% of the practitioners who reacted to a pull request did not leave any comment suggesting that reactions can be a unique source of feedback to further improve the code review and integration process. To help future studies better leverage reactions as a feedback mechanism, we conduct an empirical study to understand the usage of GitHub reactions and understand their promises and limitations. We investigate in this article how reactions are used, when and who use them on what types of pull requests, and for what purposes. Our study considers a quantitative analysis on a set of 380 k reactions on 63 k pull requests of six popular open-source projects on GitHub and three qualitative analyses on a total number of 989 reactions from the same six projects. We find that the most common used GitHub reactions are the positive ones (i.e., “Thumbs-up”, “Hooray”, “Heart”, “Rocket”, and “Laugh”). We observe that reactors use positive reactions to express positive attitude (e.g., approval, appreciation, and excitement) on the proposed changes in pull requests. A median of just 1.95% of the used reactions are negative ones, which are used by reactors who disagree with the proposed changes for six reasons, such as feature modifications that might have more downsides than upsides or the use of the wrong approach to address certain problems. Most (a median of 78.40%) reactions on a pull request come before the closing of the corresponding pull requests. Interestingly, we observe that non-contributors (i.e., outsiders who potentially are the “end-users” of the software) are also active on reacting to pull requests. On top of that, we observe that core contributors, peripheral contributors, casual contributors and outsiders have different behaviors when reacting to pull requests. For instance, most core contributors react in the early stages of a pull request, while peripheral contributors, casual contributors and outsiders react around the closing time or, in some cases, after a pull request is merged. Contributors tend to react to the pull request’s source code, while outsiders are more concerned about the impact of the pull request on the end-user experience. Our findings shed light on common patterns of GitHub reactions usage on pull requests and provide taxonomies about the intention of reactors, which can inspire future studies better leverage pull requests’ reactions.

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Reference46 articles.

1. Lin Bin, Zampetti Fiorella, Bavota Gabriele, Di Penta Massimiliano, Lanza Michele, and Oliveto Rocco. 2018. Sentiment analysis for software engineering: How far can we go? In Proceedings of the 2018 International Conference on Software Engineering. 94–104.

2. Felbo Bjarke Mislove Alan Søgaard Anders Rahwan Iyad and Lehmann Sune. 2017. Using millions of emoji occurrences to learn any-domain representations for detecting sentiment emotion and sarcasm. Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing .

3. Jake Boxer. 2016. Add Reactions to Pull Requests Issues and Comments . Retrieved from https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/. Accessed 30 May 2023.

4. Pletea Daniel, Vasilescu Bogdan, and Serebrenik Alexander. 2014. Security and emotion: Sentiment analysis of security discussions on GitHub. In Proceedings of the 2014 Working Conference on Mining Software Repositories. 348–351.

5. Gachechiladze Daviti, Lanubile Filippo, Novielli Nicole, and Serebrenik Alexander. 2017. Anger and its direction in collaborative software development. In Proceedings of the 2017 IEEE/ACM International Conference on Software Engineering: New Ideas and Emerging Technologies Results Track. 11–14.

Cited by 2 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3