Skip to main content

Git Commit Message 自动生成工具

Project description

GCM

PyPI version

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

安装

pip install git-gcm

配置

设置环境变量:

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.1.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.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: git_gcm-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 8e507595733610499f558479fefd4aae6faf1d4011cb09a5ea41b256dcdc3168
MD5 34855b4a93167c826409e7b7c2ff467e
BLAKE2b-256 af3052e4ffa22264e2a27dbc5baef26ea4c63cb900ef8a4a4b5d1e9d2f5858f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: git_gcm-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 80d00a71fe78657238059b9904ea1af0852d89d98f6b6456e39127701dfa9a2e
MD5 deda8d34bb044fe3d7410227df4a83c6
BLAKE2b-256 520ce46dc203ca558b7507a99f36d4fd2aa60a8aa288cff168948bfc298c5638

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