跳到主要导航 跳到搜索 跳到主要内容

What Makes a Good Commit Message?

  • Yingchen Tian
  • , Yuxia Zhang
  • , Klaas Jan Stol
  • , Lin Jiang
  • , Hui Liu*
  • *此作品的通讯作者
  • Beijing Institute of Technology
  • Science Foundation Ireland Research Centre for Software
  • University College Cork

科研成果: 书/报告/会议事项章节 › 会议稿件 › 同行评审

摘要

A key issue in collaborative software development is communication among developers. One modality of communication is a commit message, in which developers describe the changes they make in a repository. As such, commit messages serve as an 'audit trail' by which developers can understand how the source code of a project has changed-and why. Hence, the quality of commit messages affects the effectiveness of communication among developers. Commit messages are often of poor quality as developers lack time and motivation to craft a good message. Several automatic approaches have been proposed to generate commit messages. However, these are based on uncurated datasets including considerable proportions of poorly phrased commit messages. In this multi-method study, we first define what constitutes a 'good' commit message, and then establish what proportion of commit messages lack information using a sample of almost 1,600 messages from five highly active open source projects. We find that an average of circa 44% of messages could be improved, suggesting the use of uncurated datasets may be a major threat when commit message generators are trained with such data. We also observe that prior work has not considered semantics of commit messages, and there is surprisingly little guidance available for writing good commit messages. To that end, we develop a taxonomy based on recurring patterns in commit messages' expressions. Finally, we investigate whether 'good' commit messages can be automatically identified; such automation could prompt developers to write better commit messages.

源语言英语
主期刊名Proceedings - 2022 ACM/IEEE 44th International Conference on Software Engineering, ICSE 2022
出版商IEEE Computer Society
页2389-2401
页数13
ISBN(电子版)9781450392211
DOI
出版状态已出版 - 5 7月 2022
活动44th ACM/IEEE International Conference on Software Engineering, ICSE 2022 - Hybrid, Pittsburgh, 美国
期限: 22 5月 2022 → 27 5月 2022

丛书

姓名Proceedings - International Conference on Software Engineering
卷2022-May
ISSN(印刷版)0270-5257

会议

会议44th ACM/IEEE International Conference on Software Engineering, ICSE 2022
国家/地区美国
市Hybrid, Pittsburgh
时期22/05/22 → 27/05/22

学术指纹

探究 'What Makes a Good Commit Message?' 的科研主题。它们共同构成独一无二的学术指纹。

引用此