Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Stack should be merged when merge commit is already pushed

Aperta
#457 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
git, github, go
Ambito
cli, devtools

Direzione di ricerca

Traccia l’entry point esistente gh stack sync e la logica che determina se le PR impilate sono state unite. Confronta la gestione della base con lo scenario del merge commit inviato manualmente descritto qui. Il lavoro è completato quando tutte le PR nello stack vengono riconosciute come unite e chiuse quando la base dello stack contiene le loro modifiche.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Reproduce step

Let's say you have this stacked PRs.

main <- PR#1 <- PR#2 <- PR#3

Now, you manually create merge commit and push it to the main.

prv_main <- PR#1 <- PR#2 <- PR#3
       \---------------------+-------new_main

Current Behavior

  • PR#1 is closed, because it's base is main, and GitHub automatically closes already merged PRs.
  • PR#2 and PR#3 are NOT closed, because their bases aren't main (they point to previous PR's tip), so they still have diff remaining, and PR isn't closed.

Expected Behavior

  • All PRs should be closed.

How to fix this

Stacked PR should check it's mergeability against the whole stack's base (e.g. main in this case).

Basically the whole point of stacked PR is that "your PR is pointing to another PR, but they are treated as pointing to base".

Why this should be fixed

  1. These PRs are shown as "open PRs" while they are already merged.
  2. This will help 3rd-party integrations -- e.g. bors manually creates octopus merge commit of PRs and push it to main.

I know that you can manually gh stack sync, but I think this should be done automatically.

Lingua principale
Go
Stelle
1.5k
Fork
73
Merge medio
1g 8h
PR unite (30g)
7

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di github/gh-stack

Tutte le issue di github/gh-stack

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.