カテゴリー・パッケージ・リポジトリを検索

パッケージ詳細v0.0.1

ai_commit

OpenAI を使ってコミットメッセージを生成する Dart CLI

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
72
いいね数
3
Pub ポイント
120

パッケージをインストール

flutter pub add ai_commit

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

ai_commit は、OpenAI の言語モデルを使用してコミットメッセージを生成する Dart コマンドラインツールです。開発ワークフローにスムーズに統合され、コードの変更に基づいて記述的で意味のあるコミットメッセージを自動的に作成できるようにします。生成型AIを活用することで、コミットの作成にかかる時間を短縮し、チーム間の一貫性を高めます。モバイル、Web、デスクトップなど複数のプラットフォームをサポートしており、クロスプラットフォームプロジェクトに適しています。バージョン管理の実践における自動化を求める開発者にとって理想的です。

用途

  • コミットメッセージの自動生成
  • コミットメッセージの品質向上
  • チームコラボレーションの最適化
  • gitワークフローにおける手動入力の削減
  • コードレビューの明確さを高める

主な機能

  • AI駆動のコミットメッセージを生成します
  • 複数のプラットフォームをサポートしています
  • Flutter および Dart プロジェクトと統合されます
  • 自然言語処理に OpenAI を使用しています
  • 使いやすいコマンドラインインターフェース

適している対象

  • FlutterとGitを使用する開発者
  • 一貫したコミットメッセージを目指すチーム
  • 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 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。