rebase-pr-chain
/rebase-pr-chain
Rebase'uje łańcuch zależnych pull requestów po kolei, naprawiając konflikty po drodze, przy stacked PR wymagających aktualizacji.
- Autor
- paultyng ↗
- Repozytorium
- skill-issue ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 16.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 16.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Rebase'uje łańcuch zależnych pull requestów po kolei, naprawiając konflikty po drodze, przy stacked PR wymagających aktualizacji.
Oryginalny opis (EN)
Rebase a chain of dependent pull requests sequentially, fixing conflicts along the way. Use when the user asks to rebase a PR chain, fix conflicts on multiple chained PRs, or mentions sequential/stacked PRs that need updating.
Jak działa
- 1. Identify the Chain
- 2. Rebase Each PR
- 3. Verify Chain Mergeability
- 4. Report
Podgląd SKILL.md
--- name: rebase-pr-chain description: Rebase a chain of dependent pull requests sequentially, fixing conflicts along the way. Use when the user asks to rebase a PR chain, fix conflicts on multiple chained PRs, or mentions sequential/stacked PRs that need updating. --- # Rebase PR Chain Rebase a chain of dependent PRs so they are all up-to-date and mergeable. ## 1. Identify the Chain Accept PR numbers from the user, or detect the chain automatically: ```bash gh pr list --state open --json number,baseRefName,headRefName ``` Build the dependency graph: each PR's `baseRefName` points to the branch of the PR it depends on. Sort topologically (base branch first). If the user provides explicit PR numbers (e.g. "33, 34, 35, 36, 37"), use that order directly. ## 2. Rebase Each PR For each PR in the chain (starting from the one closest to the trunk): ### a. Fetch and checkout ```bash git fetch origin <baseRefName> <headRefName> git checkout <headRefName> ``` Verify the working tree is clean. ### b. Rebase ```bash git rebase origin/<baseRefName> ``` If the rebase completes cleanly, skip to step (d). ### c. Resolve Conflicts Follow the same conflict resolution strategy as [fix-pr-conflict](../fix-pr-conflict/SKILL.md): 1. List conflicting files: `git diff --name-only --diff-filter=U` 2. For each file, understand both sides and classify: - **Mechanical**: independent changes to nearby lines. Keep both. - **Semantic**: incompatible changes to the same logic. Resolve if the outcome is clear. - **Ambiguous**: design decisions or unclear intent. **Abort the rebase** (`git rebase --abort`) and escalate to the user with a description of the conflict. 3. After resolving: `git add <file>` then `git rebase --continue` 4. Repeat until the rebase completes or escalation is needed. ### d. Verify Run verification per [verify-when-complete](../verify-when-complete/SKILL.md). Fix any issues from bad conflict resolution. If errors are unrelated, note them. ### e. Force push ```bash git push --force-with-lease ``` ## 3. Verify Chain Mergeability After all PRs are rebased, verify each is mergeable: ```bash gh pr view <number> --json mergeable,mergeStateStatus ``` If GitHub still reports conflicts (recomputation delay), wait a few seconds and re-check once. ## 4. Report Present a summary table: | PR | Branch | Status | |----|--------|--------| | #33 | feature-a | Mergeable | | #34 | feature-b | Mergeable | | #35 | feature-c | Conflict (escalated) |
Wersje
W bazie nie ma innych skilli o nazwie rebase-pr-chain.
Migawka bazy z 13.11.2026 · wersja paczki 124dce11af0f (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 1 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100stacked-prs
Dzieli duże zmiany na łańcuch małych zależnych pull requestów z użyciem stosowanych PR GitHub i rozszerzenia gh stack. - 100git-stacked-pr-rebase
Rebase'uje stos zależnych gałęzi i PR po zmianach pod spodem, np. po scaleniu dolnego PR, aby kolejne PR pokazywały poprawne commity. - 95stacked-pr-rebase
Przepina gałęzie stackowanych pull requestów po scaleniu rodzica, zostawiając w nich tylko własne commity. - 95gh-stack
Zarządza stosami gałęzi i pull requestów przez rozszerzenie gh-stack: tworzenie, wysyłanie, rebase, synchronizację i podgląd stosów zależnych PR. - 95gh-stack
Zarządza stosami zależnych gałęzi i pull requestów rozszerzeniem gh-stack: tworzy, wypycha, rebaseuje i synchronizuje. - 100jabr
Dzieli funkcję na stos małych, zależnych pull requestów i prowadzi go zwykłym gitem i gh CLI: restack po edycji niższej gałęzi, wysyłka całego stosu, nawigacja i synchronizacja po mergach.