Receber por email
← Voltar para o catálogo

stacked-pr-base-branch-deletion-auto-closes-dependent

Recover from the trap where deleting a base PR's branch (via `gh api -X DELETE refs/heads/<branch>`) auto-closes any open dependent stacked PR, and the closed PR cannot be reopened or retargeted. Use when: (1) you set up a stacked PR pair (PR2's `base` field = PR1's branch instead of `main`), (2) you merged PR1 via squash, (3) you then deleted PR1's remote branch via the API (because `gh pr merge

0estrelas
Atualizado há 5 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add wan-huiyan/agent-traffic-control-archive

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/stacked-pr-base-branch-deletion-auto-closes-dependent/svg)](https://www.skillteca.com.br/skills/stacked-pr-base-branch-deletion-auto-closes-dependent)

Skills relacionadas

Ver todas de Marketing →

Alerta por categoria

Receba novas skills de Marketing toda segunda

1 email curto, só com as skills novas de Marketing. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

Stacked PR: Base-Branch Deletion Auto-Closes the Dependent PR

Problem

You have a stacked PR pair:

  • PR1 — base: main, head: feature-pr1
  • PR2 — base: feature-pr1, head: feature-pr2 (stacked on PR1)

You squash-merge PR1. The merge succeeds. You then run:

gh api -X DELETE repos/<owner>/<repo>/git/refs/heads/feature-pr1

…to clean up the orphaned remote branch (because gh pr merge --delete-branch failed locally with the worktree-checkout-trap and you used the

[Description truncada. Veja o README completo no GitHub.]

Compartilhar X LinkedIn