Only diff Is Not Enough: Generating Commit Messages Leveraging Reasoning and Action of Large Language Model

Author:

Li Jiawei1ORCID,Faragó David2ORCID,Petrov Christian3ORCID,Ahmed Iftekhar1ORCID

Affiliation:

1. University of California, Irvine, Irvine, USA

2. Innoopract, Karlsruhe, Germany / QPR Technologies, Karlsruhe, Germany

3. Innoopract, Karlsruhe, Germany

Abstract

Commit messages play a vital role in software development and maintenance. While previous research has introduced various Commit Message Generation (CMG) approaches, they often suffer from a lack of consideration for the broader software context associated with code changes. This limitation resulted in generated commit messages that contained insufficient information and were poorly readable. To address these shortcomings, we approached CMG as a knowledge-intensive reasoning task. We employed ReAct prompting with a cutting-edge Large Language Model (LLM) to generate high-quality commit messages. Our tool retrieves a wide range of software context information, enabling the LLM to create commit messages that are factually grounded and comprehensive. Additionally, we gathered commit message quality expectations from software practitioners, incorporating them into our approach to further enhance message quality. Human evaluation demonstrates the overall effectiveness of our CMG approach, which we named Omniscient Message Generator (OMG). It achieved an average improvement of 30.2% over human-written messages and a 71.6% improvement over state-of-the-art CMG methods.

Publisher

Association for Computing Machinery (ACM)

Reference94 articles.

1. 2006. Code Change Example 2. https://github.com/apache/maven/commit/40aacad4f0d2b0b33f3a70b971030c5d42afa167. 2006

2. 2013. Code Change Example 1. https://github.com/apache/karaf/commit/5ea93654cf709383c1d59012e749e0fa20e70ffb. 2013

3. 2022. ChatGPT: Optimizing Language Models for Dialogue. https://openai.com/blog/chatgpt. 2022

4. 2023. Agents in Langchain. https://python.langchain.com/docs/modules/agents/. 2023

5. 2023. Apache Jira. https://issues.apache.org/jira. 2023

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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