commit af935b3f6f7ba57b02e1eebc462e61dfba5cfd18 Author: Zhongwei Li Date: Sun Nov 30 08:41:04 2025 +0800 Initial commit diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..e4ee0d7 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,11 @@ +{ + "name": "github", + "description": "GitHub Actions troubleshooting and CI/CD automation", + "version": "0.18.0", + "author": { + "name": "Craig Motlin" + }, + "commands": [ + "./commands/gha.md" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..7d8debd --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# github + +GitHub Actions troubleshooting and CI/CD automation diff --git a/commands/gha.md b/commands/gha.md new file mode 100644 index 0000000..23f5b99 --- /dev/null +++ b/commands/gha.md @@ -0,0 +1,18 @@ +--- +description: Fix failing GitHub Actions for the current commit +--- + +🔧 Fix failing GitHub Actions for the current commit. + +- 🔄 Run `git fetch` to get the latest refs from origin +- 🔍 Find the failing checks for the current commit + - Use `gh run list --commit HEAD --limit 10` to see recent workflow runs + - For failed runs, use `gh run view ` to see details + - Use `gh run view --log-failed` to see only failed job logs +- 🐛 Analyze the failure logs to understand what's broken + - Look for test failures, build errors, linting issues, or type errors +- 🛠️ Fix the identified issues +- ✅ Verify fixes locally if possible +- 📤 Create a commit with the fixes + - Stage only the files you modified to fix the CI issues + - `git commit --fixup HEAD` diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..4961a64 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:motlin/claude-code-plugins:plugins/github", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "376f3b431163a8875309d08725b9e54c7f23abf5", + "treeHash": "d6eb9dd254042875ace33b2e35259fe2a8f03181ccb27ffb8a992d0d9e163a42", + "generatedAt": "2025-11-28T10:27:10.102258Z", + "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": "github", + "description": "GitHub Actions troubleshooting and CI/CD automation", + "version": "0.18.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "9c2be0005e09bde13c36ce49bc1f0a2e22072b0d5442500c797e94af086fb197" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "384df171c465704ab109aa535a9b3e8c4df68917e612cb90ef159f028e202415" + }, + { + "path": "commands/gha.md", + "sha256": "29b5407a8356bc8be5bd5f269053198f943a48cab0ba8765d5df99f35f0f30a2" + } + ], + "dirSha256": "d6eb9dd254042875ace33b2e35259fe2a8f03181ccb27ffb8a992d0d9e163a42" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file