Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:41:04 +08:00
commit af935b3f6f
4 changed files with 77 additions and 0 deletions

18
commands/gha.md Normal file
View File

@@ -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 <run-id>` to see details
- Use `gh run view <run-id> --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`