raise-pr

Flujo de trabajo paso a paso para confirmar los cambios preparados y abrir una solicitud de extracción en el repositorio lightspeed-service.

npx skills add https://github.com/openshift/lightspeed-service --skill raise-pr

Create a PR

Step 1: Branch

git fetch upstream
git branch --show-current
git log --oneline upstream/main..HEAD
git diff upstream/main --stat
gh pr list --head "$(git branch --show-current)" --state open

Present the summary and ask before proceeding:

"You are currently on branch <branch>. It has <N> commit(s) ahead of upstream/main touching: <files>. [If an open PR exists]: This branch already has an open PR: <url>. Pushing here would add commits to that existing PR. Should I create a new branch from upstream/main (recommended), or use the current branch?"

Do not continue until the user answers.

If creating a new branch — git carries uncommitted changes automatically:

git fetch upstream
git checkout -b <type>/<short-description> upstream/main
# cherry-pick intended commits from the old branch if needed
git cherry-pick <sha1> <sha2> ...

Never branch from origin/main — the fork may have stale commits that will appear in the PR.

Step 2: Pre-commit checks

Run in order and fix all failures before proceeding:

  1. make test-unit
  2. make test-integration
  3. make verify
  4. Confirm 90%+ coverage is maintained for changed code

Step 3: Commit and push

If a Jira issue ID has not been provided, ask the user for it before proceeding.

Commit message: short imperative sentence, no period, no conventional prefix, no Jira ID.

git add -A   # or only the relevant files
git commit -m "<message>"
git push -u origin HEAD

Step 4: Open the PR

Title format: <JIRA-ID>: <same short imperative sentence as commit>

Read .github/PULL_REQUEST_TEMPLATE.md and populate all sections:

  • Description — what the change does and why, derived from the diff
  • Type of change — tick the relevant checkbox(es)
  • Related Tickets & DocumentsCloses #<github-issue> if it resolves one; always link the Jira ticket
  • Checklist — tick what applies; leave unticked items that genuinely don't apply
  • Testing — describe how the change was verified
gh pr create --title "<JIRA-ID>: <description>" --body "$(cat <<'EOF'
<populated template>
EOF
)"

Return the PR URL to the user when done.

Más skills de openshift

openshift-expert
openshift
Experto en la plataforma OpenShift y Kubernetes con profundo conocimiento de arquitectura de clústeres, operadores, redes, almacenamiento, resolución de problemas y pipelines de CI/CD. Utilice…
official
find-token
openshift
Encuentra el token de verificación oculto. Ejecuta el script find-token para recuperar un token único.
official
code-review
openshift
Revisar una solicitud de extracción para evaluar calidad del código, corrección y convenciones del proyecto. Usar cuando el usuario solicite revisar un PR, hacer revisión de código o examinar cambios en un…
official
css-review
openshift
Revisar CSS para estilo de codificación, uso de tokens de PatternFly y mejores prácticas. Usar cuando el usuario solicite revisar CSS, verificar estilos o auditar archivos CSS.
official
review-readmes
openshift
Revisar todos los archivos README.md del repositorio en busca de errores tipográficos, errores e información desactualizada. Usar cuando el usuario solicite revisar READMEs, verificar la precisión de la documentación o…
official
review-skills
openshift
Revisar habilidades de IA del proyecto en busca de duplicados, referencias obsoletas, errores y problemas estructurales. Úsalo cuando el usuario pida revisar habilidades, auditar habilidades, verificar…
official
test
openshift
Ejecutar pruebas de extremo a extremo filtradas por etiqueta. Úsalo cuando el usuario solicite ejecutar pruebas, ejecutar Playwright, o probar una etiqueta de funcionalidad específica como @core o @attach.
official
unused-exports
openshift
Encuentra símbolos exportados que nunca son importados por otro archivo. Úsalo cuando el usuario diga "check exports", "unused exports" o pida limpiar las exportaciones.
official