All skills
openshift avatar

/validate-pr-override-images

@4182b87 official
by openshiftopenshift/hypershift543 stars
576

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

  • 3 files
  • 8.6 KB
  • Updated 3 months ago
  • GitHub

Use this Skill: https://skilld.dev/gh/openshift/hypershift/validate-pr-override-images

This session only. Nothing lands on disk.

SKILL.md

≈30 tokens always: the name and description. ≈285 when used: this file.

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 validation contract as documented in docs/content/contribute/cpo-overrides.md under "Validating Override Images Contain Claimed PRs". Example:

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)

Source: SKILL.md on GitHub

No third-party reports yet.

Signed by skilld at 4182b87. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 months ago
argument-hint
<PR-URL-or-number>
  • openshift
  • hypershift
  • cpo
  • image-validation
  • container-images
  • quay.io
  • skopeo
  • release-management
  • pr-validation

README badge

README badge for openshift/hypershift/validate-pr-override-images

Validates that CPO override images in a HyperShift PR contain the specific upstream PRs they claim to include. Uses skopeo to inspect image layers and cross-reference them against a structured contract in the PR description listing desired branch and PR combinations.

Generated from the current SKILL.md.

What does this skill validate?
It checks that CPO override images referenced in a PR actually contain the fix PRs they claim to include, based on a structured contract in the PR description listing branch and wanted PR numbers.
What prerequisites are required?
skopeo must be installed, the local git repo must have relevant release branches fetched, and images must be accessible from quay.io.
What format should the PR description follow?
The PR description must list a structured contract with branch versions and associated PR URLs, e.g., 'branch: 4.20 wants: https://github.com/openshift/hypershift/pull/8593'.
Can I pass just a PR number or do I need the full URL?
Both work. You can pass either a full GitHub URL (https://github.com/openshift/hypershift/pull/8610) or just the PR number (8610).

Generated from the current SKILL.md. These answers refresh after source changes.