An empirical study on developers' shared conversations with ChatGPT in GitHub pull requests and issues

被引:0
|
作者
Hao, Huizi [1 ]
Hasan, Kazi Amit [1 ]
Qin, Hong [1 ]
Macedo, Marcos [1 ]
Tian, Yuan [1 ]
Ding, Steven H. H. [1 ]
Hassan, Ahmed E. [2 ]
机构
[1] Queens Univ, Sch Comp, Kingston, ON, Canada
[2] Software Anal & Intelligence Lab SAIL, Kingston, ON, Canada
基金
加拿大自然科学与工程研究理事会;
关键词
Knowledge sharing; Conversations with ChatGPT; ChatGPT in collaborative coding; Foundation model; Issues and pull requests;
D O I
10.1007/s10664-024-10540-x
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
ChatGPT has significantly impacted software development practices, providing substantial assistance to developers in various tasks, including coding, testing, and debugging. Despite its widespread adoption, the impact of ChatGPT as an assistant in collaborative coding remains largely unexplored. In this paper, we analyze a dataset of 210 and 370 developers' shared conversations with ChatGPT in GitHub pull requests (PRs) and issues. We manually examined the content of the conversations and characterized the dynamics of the sharing behavior, i.e., understanding the rationale behind the sharing, identifying the locations where the conversations were shared, and determining the roles of the developers who shared them. Our main observations are: (1) Developers seek ChatGPT's assistance across 16 types of software engineering inquiries. In both conversations shared in PRs and issues, the most frequently encountered inquiry categories include code generation, conceptual questions, how-to guides, issue resolution, and code review. (2) Developers frequently engage with ChatGPT via multi-turn conversations where each prompt can fulfill various roles, such as unveiling initial or new tasks, iterative follow-up, and prompt refinement. Multi-turn conversations account for 33.2% of the conversations shared in PRs and 36.9% in issues. (3) In collaborative coding, developers leverage shared conversations with ChatGPT to facilitate their role-specific contributions, whether as authors of PRs or issues, code reviewers, or collaborators on issues. Our work serves as the first step towards understanding the dynamics between developers and ChatGPT in collaborative software development and opens up new directions for future research on the topic.
引用
收藏
页数:43
相关论文
共 24 条
  • [1] 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
  • [2] An Empirical Study on GitHub Pull Requests' Reactions
    Batoun, Mohamed Amine
    Yung, Ka Lai
    Tian, Yuan
    Sayagh, Mohammed
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2023, 32 (06)
  • [3] An empirical study of ChatGPT-related projects and their issues on GitHub
    Lin, Zheng
    Zhang, Neng
    Liu, Chao
    Zheng, Zibin
    EXPERT SYSTEMS WITH APPLICATIONS, 2025, 267
  • [4] 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
  • [5] 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
  • [6] ML-Augmented Automation for Recovering Links Between Pull-Requests and Issues on GitHub
    Alshara, Zakarea
    Salman, Hamzeh Eyal
    Shatnawi, Anas
    Seriai, Abdelhak-Djamel
    IEEE ACCESS, 2023, 11 : 5596 - 5608
  • [7] An empirical study of the first contributions of developers to open source projects on GitHub
    Subramanian, Vikram N.
    2020 ACM/IEEE 42ND INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: COMPANION PROCEEDINGS (ICSE-COMPANION 2020), 2020, : 116 - 118
  • [8] An empirical study of the first contributions of developers to open source projects on GitHub
    Subramanian, Vikram N.
    Proceedings - 2020 ACM/IEEE 42nd International Conference on Software Engineering: Companion, ICSE-Companion 2020, 2020, : 116 - 118
  • [9] Dependabot and security pull requests: large empirical study
    Rebatchi, Hocine
    Bissyande, Tegawende F.
    Moha, Naouel
    EMPIRICAL SOFTWARE ENGINEERING, 2024, 29 (05)
  • [10] What are the Characteristics of Reopened Pull Requests? A Case Study on Open Source Projects in GitHub
    Jiang, Jing
    Mohamed, Abdillah
    Zhang, Li
    IEEE ACCESS, 2019, 7 : 102751 - 102761