EUVIMEDEUVIMED entdecken
Crossref

CCMG: Enhancing Conventional Commit Message Generation With Hierarchical Context

Wenke Li, Chengwei Liu, Yiran Zhang, Xuesen Lin, Suyuan Wang, Feng Wu, Cai Fu, Yang Liu

IEEE Transactions on Software Engineering · 2026-08 · 52 (8) · 2303-2317

DOI: 10.1109/tse.2026.3692869 ↗

Kurz gefasst

Fachartikel in der Zeitschrift IEEE Transactions on Software Engineering, 2026-08. Verfasst von Wenke Li und 7 weiteren Autor:innen. Die Arbeit nennt 69 Literaturangaben. Gefördert von: Cyber Security Agency through the National Cybersecurity R&D Programme.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Automated commit message generation, which aims at generating natural language description from code change, allows developers to focus more on project maintenance and management. To ensure the quality of commit messages, most projects constrain their style and adopt the conventional commit specification. Conventional commit message generation has been significantly benefited from recent progress in Large Language Models (LLMs). However, previous approaches typically rely on only one or two type of information for the generation, ignoring a wide range of context information. Moreover, they often extract the context in a coarse-grained manner, missing critical details. To address this limitation, We propose CCMG, a novel hierarchical context-augmented Conventional Commit Message Generation framework, which incorporates project-agnostic and project-specific context. For project agnostic context, CCMG retrieves and refines the relevant commits to align conventional commit specification from large-scale corpus. For project-specific context, CCMG provides a wide range of software context information from the perspective of project, code, and style. Finally, CCMG designs two-stage prompt strategy to focus on conventional message inference and commit type adaptation. Compared with the state-of-the-art LLM-based approaches (i.e., OMG and OMEGA), experiment results show that CCMG achieves an average improvement of 31.45% based on human evaluation in commit message generation and improves accuracy by 21.00% and F1 score by 20.88% in commit type classification.

Förderung

  • Cyber Security Agency through the National Cybersecurity R&D Programme

Zitieren

APA

Li, W., Liu, C., Zhang, Y., Lin, X., Wang, S., Wu, F., Fu, C., & Liu, Y. (2026). CCMG: Enhancing Conventional Commit Message Generation With Hierarchical Context. IEEE Transactions on Software Engineering, 52(8), 2303-2317. https://doi.org/10.1109/tse.2026.3692869

Vancouver

Li W, Liu C, Zhang Y, Lin X, Wang S, Wu F, et al. CCMG: Enhancing Conventional Commit Message Generation With Hierarchical Context. IEEE Transactions on Software Engineering. 2026;52(8):2303-2317. doi:10.1109/tse.2026.3692869

BibTeX
@article{Li2026,
  author = {Li, Wenke and Liu, Chengwei and Zhang, Yiran and Lin, Xuesen and Wang, Suyuan and Wu, Feng and Fu, Cai and Liu, Yang},
  title = {CCMG: Enhancing Conventional Commit Message Generation With Hierarchical Context},
  journal = {IEEE Transactions on Software Engineering},
  year = {2026},
  volume = {52},
  number = {8},
  pages = {2303--2317},
  doi = {10.1109/tse.2026.3692869}
}
Kostenlos starten →