搜尋套件、儲存庫與 APP 分類

套件詳情v0.0.1

ai_commit

使用 OpenAI 生成提交訊息的 Dart 命令列工具

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
72
喜歡數
3
Pub 分數
120

安裝套件

flutter pub add ai_commit

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

ai_commit 是一個 Dart 命令列工具,使用 OpenAI 的語言模型產生提交訊息。它能無縫整合到開發工作流程中,讓開發者根據程式碼變更自動產生描述性且有意義的提交訊息。透過利用生成式 AI,它能減少撰寫提交所花費的時間,並提升團隊間的一致性。該工具支援多種平台,包括行動裝置、Web 和桌面端,適用於跨平台專案。對於尋求版本控制實務自動化的開發者來說,這是一個理想的選擇。

適用情境

  • 自動化提交訊息生成
  • 改進提交訊息品質
  • 簡化團隊協作
  • 減少 git 工作流程中的手動輸入
  • 提升程式碼審查的清晰度

主要特色

  • 產生由人工智慧驅動的提交訊息
  • 支援多個平台
  • 與 Flutter 和 Dart 專案整合
  • 使用 OpenAI 進行自然語言處理
  • 命令列介面,方便使用

適合對象

  • 使用 Git 的 Flutter 開發人員
  • 致力於保持一致提交訊息的團隊
  • CI/CD 流水線整合商
  • DevOps 工程師
  • 希望提高效率的個人貢獻者

使用建議

  • 需要一個 OpenAI API 金鑰
  • 依賴互聯網連接
  • 在沒有適當上下文的情況下,可能會產生不準確的訊息
  • 不適合敏感代碼環境
  • AI提示的自定義有限

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

ai_commit

pub package Last Commits GitHub repo size License
Uploaded By

Dart CLI for generated git commit messages with OpenAI.


Quick Started 🚀

Installing

dart pub global activate ai_commit

Or install a specific version using:

dart pub global activate ai_commit <version>

Commands

ai_commit -h

See the complete list of commands and usage information.

Dart CLI for generated commit messages with OpenAI.

Usage: ai_commit <command> [arguments]

Global options:
-h, --help                 Print this usage information.
-a, --all                  Automatically stage changes in tracked files for the commit
-c, --count                Count of messages to generate (Warning: generating multiple costs more)
-m, --model                Locale language for commit message.
-x, --exclude              Files to exclude from AI analysis
-l, --max-length           Set max length of commit message.
    --locale               Locale language for commit message.
    --[no-]conventional    Format the commit message according to the Conventional Commits specification.
-v, --version              Print the current version.
    --[no-]verbose         Noisy logging, including all shell commands executed.

Available commands:
  config   ai_commit configuration
  update   Update the CLI.

Run "ai_commit help <command>" for more information about a command.
ai_commit config

Save data configuration and use later.

ai_commit configuration

Usage: ai_commit config [arguments]
-h, --help                 Print this usage information.
    --key                  OpenAI API key.
    --locale               Set locale language.
    --count                Generate commit message count.
    --[no-]conventional    Format the commit message according to the Conventional Commits specification.
    --model                Set model name for OpenAI API.
    --max-length           Set max length of commit message.

Run "ai_commit help" to see global options.

Usage

Before using you need to set OpenAI API key

ai_commit config --key sk-xxx

Generate commit message

ai_commit

Add all files and generate a commit message

ai_commit -a

Count of messages to generate (Warning: generating multiple costs more)

# one time use
ai_commit -c 2

# save data to config
ai_commit config -c 2

OpenAI model to use for generation

# one time use
ai_commit -m gpt-3.5-turbo-1106

# save data to config
ai_commit config -m gpt-3.5-turbo-1106

Files to exclude from AI analysis

# single
ai_commit -x test.dart

# multiple
ai_commit -x one.dart, two.dart

Max length of commit message

# one time use
ai_commit -l 200

# save data to config
ai_commit config -l 200

Locale language for commit message

# one time use
ai_commit --locale en

# save data to config
ai_commit config --locale en

Format the commit message according to the Conventional Commits specification.

# one time use
ai_commit --conventional

# save data to config
ai_commit config --conventional

Disable Conventional Commits Format

ai_commit --no-conventional

# save data to config
ai_commit config --no-conventional

所屬分類

依賴

依賴清單 7 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。