commit a690cd176766ecf17688ee49d8b1dac38d4f6392 Author: Zhongwei Li Date: Sat Nov 29 18:28:27 2025 +0800 Initial commit diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..d1442fa --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,12 @@ +{ + "name": "gitbutler", + "description": "Commands for git commit workflows including commit, push, and PR creation", + "version": "1.0.0", + "author": { + "name": "GitButler", + "email": "hello@gitbutler.com" + }, + "hooks": [ + "./hooks" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..06eaf17 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# gitbutler + +Commands for git commit workflows including commit, push, and PR creation diff --git a/hooks/hooks.json b/hooks/hooks.json new file mode 100644 index 0000000..8eeaf82 --- /dev/null +++ b/hooks/hooks.json @@ -0,0 +1,38 @@ +{ + "description": "Automatic committing after each Claude Code sessions", + "hooks": { + "PreToolUse": [ + { + "matcher": "Edit|MultiEdit|Write", + "hooks": [ + { + "type": "command", + "command": "but claude pre-tool" + } + ] + } + ], + "PostToolUse": [ + { + "matcher": "Edit|MultiEdit|Write", + "hooks": [ + { + "type": "command", + "command": "but claude post-tool" + } + ] + } + ], + "Stop": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "but claude stop" + } + ] + } + ] + } +} diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..1f60dc7 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:gitbutlerapp/claude:plugins/gitbutler", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "a3afda1f8a6192a7c8cba0c90bf828d1b6579292", + "treeHash": "b47b98ad1616267d27b163f1d2dee8ebd6227d7c074b207eac56602637c64bb4", + "generatedAt": "2025-11-28T10:17:00.305574Z", + "toolVersion": "publish_plugins.py@0.2.0" + }, + "origin": { + "remote": "git@github.com:zhongweili/42plugin-data.git", + "branch": "master", + "commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390", + "repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data" + }, + "manifest": { + "name": "gitbutler", + "description": "Commands for git commit workflows including commit, push, and PR creation", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "d0fb19b0b4fe1f323dd62837ef20004e4b0ae8c5718df2694e5a9ac0816ee31d" + }, + { + "path": "hooks/hooks.json", + "sha256": "3314429c21e1bd4b9dc4e214f869537877ae61715bab9b2d81ed2daceafc49a1" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "1e7209d04bde35ba0b4b9c19985f55a52b1df015abc3c0af14235569e4958c52" + } + ], + "dirSha256": "b47b98ad1616267d27b163f1d2dee8ebd6227d7c074b207eac56602637c64bb4" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file