fix-hypershift-repo-robot-pr

Fixes bot-authored HyperShift PRs by regenerating files and creating replacement PRs.

538|560|Updated Jan 18, 2021
One-click install
npx skills add https://github.com/openshift/hypershift --skill fix-hypershift-repo-robot-pr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-hypershift-repo-robot-pr
Source: https://github.com/openshift/hypershift/tree/main/.claude/skills/fix-hypershift-repo-robot-pr
Command: npx skills add https://github.com/openshift/hypershift --skill fix-hypershift-repo-robot-pr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Bot-authored pull requests (Dependabot, Konflux, Renovate) in the HyperShift repository often fail CI because they lack regenerated files from make verify, requiring manual intervention to fix, revalidate, and merge.

Core Features & Use Cases

  • Bot PR Validation: Verifies the target PR is open, authored by a bot (is_bot: true), and that the working directory is clean before making any changes.
  • Automated Fix Workflow: Cherry-picks bot commits onto a new fix/ branch, converts messages to conventional commit format, runs make verify and UPDATE=true make test, and organizes changes into logical commits (go.mod, vendor/, api/ module, CRD manifests).
  • Safe PR Replacement: On successful validation, pushes the fix branch, creates a new PR referencing the original, and closes or comments on the original; on failure, preserves the original PR and cleans up locally.
  • Use Case: A Dependabot PR bumping Go dependencies fails CI due to stale generated CRDs. Run the command with the PR number to produce a passing replacement PR with properly organized commits.

Quick Start

Fix the failing bot PR by running the command with a PR number or URL, for example: fix hypershift repo robot PR 7435.

Frequently Asked Questions about fix-hypershift-repo-robot-pr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix a failing Dependabot PR in the HyperShift repo?

Run the command with the PR number or URL, such as `/fix-hypershift-repo-robot-pr 7435`. It cherry-picks the bot's commits, runs make verify to regenerate files, validates with make test, and creates a new passing PR that supersedes the original.

What bots are supported for automated PR fixing?

Any PR whose author has `is_bot: true` is supported, including Dependabot, Red Hat Konflux, and Renovate. The command validates the author type before proceeding and rejects human-authored PRs.

What happens if make verify or make test fails during the fix?

The workflow aborts, preserves the original PR untouched, deletes the local fix branch, and returns to your original branch. It reports which validation step failed so you can investigate manually.

Can the command close the original bot PR automatically?

Yes, it attempts to close the original PR with an explanatory comment after the new PR is created. If you lack close permissions, it falls back to adding a comment noting the superseding PR.

What are the requirements to run this PR fix workflow?

You need the gh CLI authenticated with push and PR access, git configured with user.name and user.email, the make and Go toolchain available, and a clean working directory with no uncommitted changes.