backport

tarafından openshift

Ana daldan bir sürüm dalına commit veya PR'ları geri taşıyın. Kullanıcı backport, cherry-pick veya değişiklikleri dallar arasında taşıma istediğinde veya çözümleme yaparken kullanın.

npx skills add https://github.com/openshift/lightspeed-console --skill backport

Backport to a release branch

The release branches are listed in release-branches.md. Read that file to determine the available target branches.

Key principle

The target release branch's structure is authoritative. The source commit provides intent. Express that intent using the target branch's patterns and components.

Workflow

  1. Determine the target release branch. If the user doesn't specify, ask.
  2. Switch to the local target release branch (git checkout <branch>) and create a new branch from it (git checkout -b <name>) with a short prefix derived from the branch name (e.g. pf5-<topic> for pattern-fly-5, 4.19-<topic> for release-4.19). Do not branch off a remote ref directly — that sets unwanted upstream tracking.
  3. Read the source commit (git show <commit>) to understand the intent.
  4. Attempt git cherry-pick <commit>. If conflicts are trivial, resolve them. If the cherry-pick fails badly, abort (git cherry-pick --abort) and manually apply the changes instead.
  5. Adapt incoming changes to the target branch's code structure — search the target branch for equivalents when needed. See the branch-specific notes below for known differences.
  6. Verify no conflict markers remain.
  7. Run npm ci — release branches have different dependency versions, so a clean install from the lockfile is required before linting or building.
  8. Run the following in order, fixing any errors you introduced before moving on (ignore pre-existing build failures):
    1. npm run lint-fix
    2. npm run i18n
    3. npm run build
  9. Prefix the final commit title to identify the target branch (e.g. "PF5: " for pattern-fly-5, "4.19: " for release-4.19):
    • If cherry-pick succeeded: amend the commit message title (e.g. git commit --amend).
    • If changes were applied manually: create a new commit with the original message, prefixed appropriately.

Branch-specific notes

pattern-fly-5

Components, props, and CSS differ between main and pattern-fly-5 because of the PatternFly 5 → 6 migration. PF6 introduced design tokens (--pf-t--* CSS variables) that don't exist in PF5. When incoming code references Chatbot extension components, PF6-specific APIs, or design tokens, find and use the PF5 equivalent on the target branch.

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