Repo Clean Up banner
xiaolai xiaolai

Repo Clean Up

Git community

Description

--- description: Remove failed/canceled GitHub Actions runs and stale remote branches --- # Repository Cleanup Clean up the remote repository by removing failed CI artifacts and stale branches. ## Step 1: Delete Failed GitHub Actions Runs ```bash gh run list --status failure --limit 100 --json databaseId --jq '.[].databaseId' ``` Delete each run with `gh run delete <id>`. Report: `Deleted N failed runs.` ## Step 2: Delete Canceled GitHub Actions Runs ```bash gh run list --status cancelle

Installation

Installs to ~/.claude/commands/xiaolai-vmark-repo-clean-up.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/xiaolai/vmark/HEAD/.claude/commands/repo-clean-up.md -o ~/.claude/commands/xiaolai-vmark-repo-clean-up.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository