ai-commit - 让 AI 为你自动生成 conventional 格式的提交信息

guanguansguanguans -
ai-commit - 让 AI 为你自动生成 conventional 格式的提交信息

ai-commit - 让 AI 为你自动生成 conventional 格式的提交信息源码

https://github.com/guanguans/ai-commit

功能默认生成 conventional 格式的提交信息可自定义生成信息的 AI 驱动(目前仅支持 Open AI)可自定义生成待选提交信息的数量可自定义生成信息的提示模板安装直接下载 ai-commit 文件
curl 'https://raw.githubusercontent.com/guanguans/ai-commit/main/builds/ai-commit' -o ai-commit --progress
chmod +x ai-commit
通过 Composer 安装
# 全局
composer global require guanguans/ai-commit --dev -v

# 本地
composer require guanguans/ai-commit --dev -v
使用配置 OpenAI API key
./ai-commit config set generators.openai.api_key sk-... --global
生成且提交信息
./ai-commit commit
╰─ ./ai-commit commit                                                                                  ─╯
1. Checking run environment: ✔
2. Generating commit messages: generating...

[
    {
        "id": 1,
        "subject": "Docs(README): Configure OpenAI API key",
        "body": "- Update README-zh_CN.md\n- Update README.md\n- Explain how to configure OpenAI API key"
    },
    {
        "id": 2,
        "subject": "Install(Composer): Add global and local install instructions",
        "body": "- Update README.md\n- Add instructions for global and local install via Composer"
    },
    {
        "id": 3,
        "subject": "Usage(Commit Messages): Add best practices",
        "body": "- Update README.md\n- Add best practices for writing commit messages"
    }
]

2. Generating commit messages: ✔
3. Choosing commit message: choosing...

 Please choice a commit message:
  [1] Docs(README): Configure OpenAI API key
  [2] Install(Composer): Add global and local install instructions
  [3] Usage(Commit Messages): Add best practices
 > 
特别申明:本文内容来源网络,版权归原作者所有,如有侵权请立即与我们联系(cy198701067573@163.com),我们将及时处理。

php介绍

PHP即“超文本预处理器”,是一种通用开源脚本语言。PHP是在服务器端执行的脚本语言,与C语言类似,是常用的网站编程语言。PHP独特的语法混合了C、Java、Perl以及 PHP 自创的语法。利于学习,使用广泛,主要适用于Web开发领域。

Tags 标签

phpgitai开发人工智能lavarel

扩展阅读

加个好友,技术交流

1628738909466805.jpg