GitHub Actions troubleshooting and CI/CD automation

version
1.42.0
GitHub stars
20

Install

/plugin install github@motlin-claude-code-plugins

Run it inside Claude Code after adding the marketplace with /plugin marketplace add motlin/claude-code-plugins.

Contents

Discovered from source

Skills 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