使用Transformers和少样本学习对GitHub Actions进行自动分类
Automatic Categorization of GitHub Actions with Transformers and Few-shot Learning
AI总结:
本文提出Gavel,利用Transformer和少样本学习,基于README.MD内容为GitHub Actions自动分配类别,有效提升可见性并优于基线。
摘要:
在GitHub生态系统中,工作流被用作自动化开发任务和设置持续集成与交付(CI/CD pipeline)的有效手段。GitHub Actions(GHA)旨在为开发者提供一个实用工具来创建和维护工作流,避免重复造轮子以及用shell命令使工作流变得混乱。正确利用GitHub Actions的功能可以促进开发过程、增强协作,并对项目结果产生重大影响。为了将actions暴露给搜索引擎,GitHub允许开发者手动将它们分配到一个或多个类别中。这些类别被用作对具有相似功能的actions进行分组的有效手段。然而,尽管提供了执行工作流的实用方法,但许多actions的目的不明确,有时它们未被分类。在这项工作中,我们通过构思Gavel来弥合这一差距,Gavel是一个提高GitHub中actions可见性的实用解决方案。通过利用每个action的README.MD文件内容,我们使用Transformer——一种深度学习算法——为action分配合适的类别。我们进行了一项实证调查,并将Gavel与最先进的基线进行了比较。实验结果表明,我们提出的方法能够有效地为GitHub actions分配类别,从而优于最先进的基线。
英文摘要:
In the GitHub ecosystem, workflows are used as an effective means to automate development tasks and to set up a Continuous Integration and Delivery (CI/CD pipeline). GitHub Actions (GHA) have been conceived to provide developers with a practical tool to create and maintain workflows, avoiding reinventing the wheel and cluttering the workflow with shell commands. Properly leveraging the power of GitHub Actions can facilitate the development processes, enhance collaboration, and significantly impact project outcomes. To expose actions to search engines, GitHub allows developers to assign them to one or more categories manually. These are used as an effective means to group actions sharing similar functionality. Nevertheless, while providing a practical way to execute workflows, many actions have unclear purposes, and sometimes they are not categorized. In this work, we bridge such a gap by conceptualizing Gavel, a practical solution to increasing the visibility of actions in GitHub. By leveraging the content of README.MD files for each action, we use Transformer--a deep learning algorithm--to assign suitable categories to the action. We conducted an empirical investigation and compared Gavel with a state-of-the-art baseline. The experimental results show that our proposed approach can assign categories to GitHub actions effectively, thus outperforming the state-of-the-art baseline.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。