raise-pr

tarafından openshift

Step-by-step workflow for committing staged changes and opening a pull request in the lightspeed-service repo.

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.

openshift tarafından daha fazla skill

openshift-expert
openshift
OpenShift platform ve Kubernetes uzmanı olup, küme mimarisi, operatörler, ağ oluşturma, depolama, sorun giderme ve CI/CD boru hatları konularında derin bilgiye sahiptir. Kullan…
official
find-token
openshift
Gizli doğrulama token'ını bulun. Benzersiz bir token almak için find-token betiğini çalıştırın.
official
code-review
openshift
Bir çekme isteğini kod kalitesi, doğruluk ve proje kuralları açısından inceleyin. Kullanıcı bir PR'ı incelemeyi, kod incelemesi yapmayı veya bir... üzerindeki değişiklikleri incelemeyi istediğinde kullanın.
official
css-review
openshift
CSS kod stilini, PatternFly token kullanımını ve en iyi uygulamaları gözden geçir. Kullanıcı CSS incelemesi, stil kontrolü veya CSS dosyalarını denetleme talebinde bulunduğunda kullan.
official
review-readmes
openshift
Depodaki tüm README.md dosyalarını yazım hataları, hatalar ve güncel olmayan bilgiler açısından gözden geçir. Kullanıcı README'leri gözden geçirmeyi, dokümantasyon doğruluğunu kontrol etmeyi istediğinde veya…
official
review-skills
openshift
Proje yapay zeka becerilerini tekrarlar, güncelliğini yitirmiş referanslar, hatalar ve yapısal sorunlar açısından gözden geçir. Kullanıcı becerileri gözden geçirmek, denetlemek, kontrol etmek istediğinde kullan…
official
test
openshift
Etiketle filtrelenmiş uçtan uca testleri çalıştırın. Kullanıcı test çalıştırmak, Playwright çalıştırmak veya @core ya da @attach gibi belirli bir özellik etiketini test etmek istediğinde kullanın.
official
unused-exports
openshift
Başka bir dosya tarafından hiç içe aktarılmayan dışa aktarılmış sembolleri bulur. Kullanıcı "dışa aktarımları kontrol et", "kullanılmayan dışa aktarımlar" dediğinde veya dışa aktarımları temizlemeyi istediğinde kullanın.
official