Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .claude/commands/fix-ci-failed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Please analyze and fix the GitHub CI job issue for a given branch.

Follow these steps:

1. Use this shell script to pull the failed logs from the Github CI job. The first argument to the script should be the current checked out branch, which you can retrieve using the shell command `git rev-parse --abbrev-ref HEAD`.

```bash
BRANCH=$1
RUN_ID=$(gh run list --branch $BRANCH -w CI --json databaseId,conclusion,status --jq '.[0] | select(.conclusion=="failure") | .databaseId')

JOB_ID=$( gh run view $RUN_ID --json jobs --jq '.jobs[] | select(.conclusion=="failure") | .databaseId')

gh run view -v --log-failed --job $JOB_ID
```

Check failure on line 14 in .claude/commands/fix-ci-failed.md

View workflow job for this annotation

GitHub Actions / markdown-lint

Fenced code blocks should be surrounded by blank lines

.claude/commands/fix-ci-failed.md:14 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"] https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md031.md
2. Understand the problem described in the logs

Check failure on line 15 in .claude/commands/fix-ci-failed.md

View workflow job for this annotation

GitHub Actions / markdown-lint

Lists should be surrounded by blank lines

.claude/commands/fix-ci-failed.md:15 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "2. Understand the problem desc..."] https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md032.md
3. Search the codebase for relevant files
4. Come up with a plan first and ask for my review
5. Implement the necessary changes to fix the issue
6. Run tests to verify the fix
7. Ensure code passes linting and type checking

Remember to use the GitHub CLI (gh) for all GitHub-related tasks.
Loading