Skip to main content

Git Commit Message 自动生成工具

Project description

GCM

基于 AI 的 Git Commit Message 自动生成工具,支持所有 OpenAI 协议兼容的大模型服务。

安装

make build

配置

设置环境变量:

export GCM_API_KEY="your-api-key"
export GCM_API_URL="https://api.openai.com/v1"
export GCM_MODEL="gpt-4o-mini"

使用

git add .
gcm           # 生成精简 commit message
gcm -v        # 生成详细 commit message

示例

精简模式:

feat(auth): 添加用户登录功能

详细模式 (-v):

feat(auth): 添加用户登录功能

- 实现 JWT token 认证
- 添加登录表单验证
- 集成第三方 OAuth 登录

Git 集成

git commit -m "$(gcm)"

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

git_gcm-1.0.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

git_gcm-1.0.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file git_gcm-1.0.0.tar.gz.

File metadata

  • Download URL: git_gcm-1.0.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for git_gcm-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e6cb7af30a3d5fc27447c86f7ef85849e496f4e32015c9b1776e81cd0d5974fa
MD5 27d689a17728e9a3f5889f1bf102be6e
BLAKE2b-256 7a1151d144355d04c08f85b12de4a4ea48377854fbd46db20b147409202c23b3

See more details on using hashes here.

File details

Details for the file git_gcm-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: git_gcm-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for git_gcm-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51b7bf7bfdf27cf46c2db07cf09fb21eaa933a67ae7fab0718b6c210862a1adb
MD5 3f43c17c8291c710beebc8313291c910
BLAKE2b-256 8b6e0dfe4a2fe97bee7106122350d8a9690ea137c24e67631fe580f1b542838d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page