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.