paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Commit Message Matters: Investigating Impact and Evolution of Commit Message Quality

提交信息很重要:探究提交信息质量的影响与演化
ICSE 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE)2023匹配度 1/10 · 该论文聚焦提交信息质量与缺陷倾向的实证分析,并用传统机器学习分类器识别 What/Why 信息,属于软件工程/开发者工具方向。它与用户关注的静态分析、Agentic 程序、LLM 与程序分析/形式化验证交叉、浮点程序分析或贝叶斯程序分析均无直接关联。引用 42 inbox
Jiawei Li, Iftekhar Ahmed
crossref: 2026-09-12dblp: 2026-09-12

AI 速览

一句话:构建结合提交信息与链接内容的分类器,揭示提交信息质量影响缺陷倾向并随时间下降。

提交信息对开发者沟通至关重要,其质量通常要求同时包含代码变更摘要(What)和背后动机/原因(Why),而 issue/PR 链接常被用来提供 Why 信息。本文发现这些链接在提供 Why 时存在若干质量问题,因此开发了一个机器学习分类器,结合提交信息与链接内容自动判断提交信息是否包含 What 和 Why。该分类器在 F1 上比当时最优分类器提高 12 个百分点。作者进一步开展混合方法实证分析,发现提交信息质量会影响软件缺陷倾向,且整体质量随时间下降,但开发者主观上认为自己在写出更好的提交信息。所有工具、脚本和数据均已公开。

问题
提交信息中的 What 与 Why 信息对开发者沟通很重要,但常用于提供 Why 的 issue/PR 链接存在质量问题,如何自动判断并理解其影响尚不充分。
方法
开发机器学习分类器,结合提交信息文本与链接内容,自动识别提交信息是否包含 What 和 Why;随后进行混合方法实证分析。
评估
分类器在 F1 上比当时最优方法提高 12 个百分点;实证分析揭示提交信息质量与缺陷倾向相关,并发现质量随时间下降而开发者主观认为在提升。
原文摘要(Abstract)

Commit messages play an important role in communication among developers. To measure the quality of commit messages, researchers have defined what semantically constitutes a Good commit message: it should have both the summary of the code change (What) and the motivation/reason behind it (Why). The presence of the issue report/pull request links referenced in a commit message has been treated as a way of providing Why information. In this study, we found several quality issues that could hamper the links' ability to provide Why information. Based on this observation, we developed a machine learning classifier for automatically identifying whether a commit message has What and Why information by considering both the commit messages and the link contents. This classifier outperforms state-of-the-art machine learning classifiers by 12 percentage points improvement in the F1 score. With the improved classifier, we conducted a mixed method empirical analysis and found that: (1) Commit message quality has an impact on software defect proneness, and (2) the overall quality of the commit messages decreases over time, while developers believe they are writing better commit messages. All the research artifacts (i.e., tools, scripts, and data) of this study are available on the accompanying website [2].

链接与引用

DOI 原文 · DBLP

BibTeX
@inproceedings{LiA23,
  title = {Commit Message Matters: Investigating Impact and Evolution of Commit Message Quality},
  author = {Jiawei Li and Iftekhar Ahmed},
  booktitle = {ICSE},
  year = {2023},
  doi = {10.1109/icse48619.2023.00076}
}