GitHub Actions troubleshooting and CI/CD automation
- version
- 1.42.0
- GitHub stars
- 20
Install
/plugin install github@motlin-claude-code-pluginsRun it inside Claude Code after adding the marketplace with /plugin marketplace add motlin/claude-code-plugins.
Contents
Discovered from sourceSkills 2
Create Pull Request
Use the code:cli, git:git-workflow, and git:commit skills when available. Only create a PR when the user has explicitly asked for one.
Confirm the Branch Is on Upstream Main
git fetch "${UPSTREAM_REMOTE:-upstream}"
git merge-base --is-ancestor "${UPSTREAM_REMOTE:-upstream}/${UPSTREAM_BRANCH:-main}" HEAD
A non-zero exit means the branch is behind. Offer to rebase with the git:git-rebase skill rather than opening a stale PR.
Title
Count the commits the branch adds with git rev-list --count "${UPSTREAM_REMOTE:-upstream}/${UPSTREAM_BRANCH:-main}..HEAD".
- One commit: the title is that commit's message. Never type it from memory; read it from git in a subshell,
"$(git log -1 --pretty=%s)", so it matches exactly. - More than one: write a one-line summary in commit message style.
Create the PR
Always pass an explicit empty body so gh doesn't prompt or auto-fill. When a browser is available, use --web to open the prefilled page for final review. On a headless system, drop --web.
For a single-commit branch, read the title from git:
gh pr create --web --title "$(git log -1 --pretty=%s)" --body ""
For a multi-commit branch, pass the summary title you wrote:
gh pr create --web --title "Summary of the branch in commit message style" --body ""
GitHub Actions Fix
Use the code:cli, git:git-workflow, and git:commit skills when available.
Run git fetch, then find the failing runs for HEAD and read their logs:
gh run list --commit HEAD --limit 10
gh run view <run-id>
gh run view <run-id> --log-failed
Fix the failures and reproduce and verify the fix locally; if the failure can't be reproduced locally (e.g. it depends on CI-only secrets or runners), say so in the report. Stage only the files changed to fix CI, then commit:
git commit --fixup HEAD
Sponsors
Details
- Marketplace
- motlin/claude-code-plugins
- Source
- plugins/github
- Author
- Craig Motlin
- Category
- Productivity
More from motlin/claude-code-plugins
All 30- herdr-rebootv1.42.0
- herdr-titlesv1.42.0
- investigation-reportv1.42.0
- iterm2-titlesv1.14.0
- javav1.42.0
- justfilev1.42.0
- markdown-tasksv1.42.0
- narrationv1.42.0
- offline-claude-code-guidev1.14.0
- orchestrationv1.42.0
- plans-dashboardv1.42.0
- plugin-and-skill-devv1.42.0
- pushoverv1.14.0
- recapv1.42.0
- stop-phrase-guardv1.42.0
- temporal-datav1.42.0
- tmux-titlesv1.42.0
- upstream-syncv1.42.0
- worktree-setupv1.42.0
- bash-guardsv1.42.0
- buildv1.42.0
- builtin-tasksv1.14.0
- burnv1.42.0
- codev1.42.0
