/openshift-developer:create-prfrom openshift-developer
Pushes a completed feature branch and creates a pull request linked to a Jira issue. Reads PR templates and commit logs to generate structured PR titles and bodies.
Ships in openshift-developer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
openshift-developer:create-pr
/openshift-developer:create-pr <ISSUE_KEY> [--upstream <owner/repo>] [--head <fork-owner>:<branch>]
Creates a pull request from a completed feature branch and links it to a Jira issue. Reads the repo's PR template, inspects the commit log, and generates a well-structured PR title and body. It is the delivery building block selected by jira-solve after the chosen implementation and quality chain succeeds.
Parse arguments:
$1 — Jira issue key (required, e.g. OCPBUGS-1234)--upstream — target repository (default: infer from gh repo view --json nameWithOwner)--head — PR head ref in fork-owner:branch format (default: current branch)Determine the current branch:
BRANCH=$(git branch --show-current)
Discover remotes, then determine the base branch:
REMOTE=$(git remote | head -1)
BASE_BRANCH=$(git remote show "$REMOTE" | sed -n 's/.*HEAD branch: //p')
Fall back to main if detection fails.
Read the commit history for the PR:
git log "${BASE_BRANCH}..HEAD" --format="%h %s%n%n%b" --reverse
Read the PR template if it exists:
cat .github/PULL_REQUEST_TEMPLATE.md 2>/dev/null || true
Title: Must start with <ISSUE_KEY>: followed by a concise summary derived from the commits.
Body: Structure using the PR template if one exists. Include:
https://redhat.atlassian.net/browse/<ISSUE_KEY>Always review AI generated responses prior to use.
AI-assisted response via openshift-developer plugin
Before pushing, require git status --short to be empty. Refuse to push the default
branch or to force-push. Push the current feature branch to the selected remote, unless
the caller prohibits external writes. Do not create a PR when the branch was not pushed.
Build and run the gh pr create command:
gh pr create \
--repo <UPSTREAM> \
--head <HEAD_REF> \
--no-maintainer-edit \
--title '<ISSUE_KEY>: <summary>' \
--body '<body>'
--upstream was provided, use it as --repo.--head was provided, use it directly.--repo and --head (defaults to current repo context and current branch).Print the PR URL returned by gh pr create.
Create a PR for a Jira issue (simple):
/openshift-developer:create-pr CNTRLPLANE-1234
Create a PR targeting a specific upstream from a fork:
/openshift-developer:create-pr OCPBUGS-5678 --upstream openshift/hypershift --head hypershift-community:fix/OCPBUGS-5678
$1 — Jira issue key (required)--upstream — target repository in owner/repo format (optional)--head — PR head ref in fork-owner:branch format (optional)git remote or git branch -vv) before selecting oneWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub openshift-eng/ai-helpers --plugin openshift-developer16 skills in this plugin
/address-ci-failuresTriage and fix PR CI failures caused by the PR's own changes, and rebase the PR when it needs one. Use when has-review-work detects new failing checks or a needs-rebase label, when a PR has CI regressions to investigate, or when deciding whether to fix vs report a CI failure./address-review-prFetch and address all PR review comments — categorize by priority, make code changes, post replies, and push. Use when the user wants to address, respond to, or work through PR review feedback./address-review-precommitCompatibility alias for applying pre-commit review findings through the implement skill. Use when an existing caller has not migrated to openshift-developer:implement.Other plugins' skills for the same job