Automatic pull request title generation
Pull Requests (PRs) are a mechanism on modern collaborative coding platforms, such as GitHub. PRs allow developers to tell others that their code changes are available for merging into another branch in a repository. A PR needs to be reviewed and approved by the core team of the repository before th...
Saved in:
Main Authors: | , , , , , |
---|---|
Format: | text |
Language: | English |
Published: |
Institutional Knowledge at Singapore Management University
2022
|
Subjects: | |
Online Access: | https://ink.library.smu.edu.sg/sis_research/7699 https://ink.library.smu.edu.sg/context/sis_research/article/8702/viewcontent/automatic.pdf |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Institution: | Singapore Management University |
Language: | English |
id |
sg-smu-ink.sis_research-8702 |
---|---|
record_format |
dspace |
spelling |
sg-smu-ink.sis_research-87022023-08-03T05:45:06Z Automatic pull request title generation ZHANG, Ting IRSAN, Ivana Clairine THUNG, Ferdian HAN, DongGyun LO, David JIANG, Lingxiao Pull Requests (PRs) are a mechanism on modern collaborative coding platforms, such as GitHub. PRs allow developers to tell others that their code changes are available for merging into another branch in a repository. A PR needs to be reviewed and approved by the core team of the repository before the changes are merged into the branch. Usually, reviewers need to identify a PR that is in line with their interests before providing a review. By default, PRs are arranged in a list view that shows the titles of PRs. Therefore, it is desirable to have a precise and concise title, which is beneficial for both reviewers and other developers. However, it is often the case that developers do not provide good titles; we find that many existing PR titles are either inappropriate in length (i.e., too short or too long) or fail to convey useful information, which may result in PR being ignored or rejected. Therefore, there is a need for automatic techniques to help developers draft high-quality titles. In this paper, we introduce the task of automatic generation of PR titles. We formulate the task as a one-sentence summarization task. To facilitate the research on this task, we construct a dataset that consists of 43,816 PRs from 495 GitHub repositories. We evaluated the state-of-the-art summarization approaches for the automatic PR title generation task. We leverage ROUGE metrics to automatically evaluate the summarization approaches and conduct a manual evaluation. The experimental results indicate that BART is the best technique for generating satisfactory PR titles with ROUGE-1, ROUGE-2, and ROUGE-L F1-scores of 47.22, 25.27, and 43.12, respectively. The manual evaluation also shows that the titles generated by BART are preferred. 2022-10-01T07:00:00Z text application/pdf https://ink.library.smu.edu.sg/sis_research/7699 info:doi/10.1109/ICSME55016.2022.00015 https://ink.library.smu.edu.sg/context/sis_research/article/8702/viewcontent/automatic.pdf http://creativecommons.org/licenses/by-nc-nd/4.0/ Research Collection School Of Computing and Information Systems eng Institutional Knowledge at Singapore Management University Summarization GitHub Pull-Request Mining Software Repositories Databases and Information Systems Software Engineering |
institution |
Singapore Management University |
building |
SMU Libraries |
continent |
Asia |
country |
Singapore Singapore |
content_provider |
SMU Libraries |
collection |
InK@SMU |
language |
English |
topic |
Summarization GitHub Pull-Request Mining Software Repositories Databases and Information Systems Software Engineering |
spellingShingle |
Summarization GitHub Pull-Request Mining Software Repositories Databases and Information Systems Software Engineering ZHANG, Ting IRSAN, Ivana Clairine THUNG, Ferdian HAN, DongGyun LO, David JIANG, Lingxiao Automatic pull request title generation |
description |
Pull Requests (PRs) are a mechanism on modern collaborative coding platforms, such as GitHub. PRs allow developers to tell others that their code changes are available for merging into another branch in a repository. A PR needs to be reviewed and approved by the core team of the repository before the changes are merged into the branch. Usually, reviewers need to identify a PR that is in line with their interests before providing a review. By default, PRs are arranged in a list view that shows the titles of PRs. Therefore, it is desirable to have a precise and concise title, which is beneficial for both reviewers and other developers. However, it is often the case that developers do not provide good titles; we find that many existing PR titles are either inappropriate in length (i.e., too short or too long) or fail to convey useful information, which may result in PR being ignored or rejected. Therefore, there is a need for automatic techniques to help developers draft high-quality titles. In this paper, we introduce the task of automatic generation of PR titles. We formulate the task as a one-sentence summarization task. To facilitate the research on this task, we construct a dataset that consists of 43,816 PRs from 495 GitHub repositories. We evaluated the state-of-the-art summarization approaches for the automatic PR title generation task. We leverage ROUGE metrics to automatically evaluate the summarization approaches and conduct a manual evaluation. The experimental results indicate that BART is the best technique for generating satisfactory PR titles with ROUGE-1, ROUGE-2, and ROUGE-L F1-scores of 47.22, 25.27, and 43.12, respectively. The manual evaluation also shows that the titles generated by BART are preferred. |
format |
text |
author |
ZHANG, Ting IRSAN, Ivana Clairine THUNG, Ferdian HAN, DongGyun LO, David JIANG, Lingxiao |
author_facet |
ZHANG, Ting IRSAN, Ivana Clairine THUNG, Ferdian HAN, DongGyun LO, David JIANG, Lingxiao |
author_sort |
ZHANG, Ting |
title |
Automatic pull request title generation |
title_short |
Automatic pull request title generation |
title_full |
Automatic pull request title generation |
title_fullStr |
Automatic pull request title generation |
title_full_unstemmed |
Automatic pull request title generation |
title_sort |
automatic pull request title generation |
publisher |
Institutional Knowledge at Singapore Management University |
publishDate |
2022 |
url |
https://ink.library.smu.edu.sg/sis_research/7699 https://ink.library.smu.edu.sg/context/sis_research/article/8702/viewcontent/automatic.pdf |
_version_ |
1773551436490080256 |