Labsco
openshift logo

validate-pr-override-images

โ˜… 527

by openshift ยท part of openshift/hypershift

Validates that CPO override images in a PR actually contain the PRs they claim to include

๐Ÿ”Œ This skill ships inside the hypershift plugin โ€” install the plugin and you also get 7 slash commands, 5 sub-agents.

This is the playbook your agent receives when the skill activates โ€” you don't need to read it to use the skill, but it's here to audit before installing.

Name

validate-pr-override-images

Synopsis

/validate-pr-override-images <PR-URL-or-number>

Description

Validates that CPO override images in a PR actually contain the claimed fix PRs.

The PR description must include a structured contract:

branch: 4.20 wants: https://github.com/openshift/hypershift/pull/8593
branch: 4.21 wants: https://github.com/openshift/hypershift/pull/8593, https://github.com/openshift/hypershift/pull/8565

Prerequisites:

  • skopeo must be installed (brew install skopeo on macOS)
  • The local git repo must have the relevant release branches fetched
  • Images must be accessible from quay.io

Implementation

Extract the PR number from the argument, then run:

.claude/skills/validate-pr-override-images/validate-overrides.sh <pr-number>

Report the output to the user.

Arguments

  • $1: PR URL (e.g., https://github.com/openshift/hypershift/pull/8610) or PR number (e.g., 8610)