github / github/gh-stack

Repos in the same org not able to run `gh stack submit`

Aperta
#397 1 commento 4 reazioni 0 assegnatari Vedi su GitHub
bug topic: merge queue
Lingua principale
Go
Stelle
1.5k
Fork
70
Merge medio
1g 8h
PR unite (30g)
7

Descrizione

Last Friday, I was testing stacked PRs for our org, and I was able to submit two stacked PRs in `repo-a`. This week, I am able to submit stacked PRs in `repo-b` and `repo-c` within the same org, but not in `repo-a`. I am getting the error:

> $ gh stack submit
> Checking stack state...
> ⚠ Stacked PRs are not enabled for this repository
> ? Would you still like to create regular PRs?

----
I tried the following API calls to diagnose:
`gh api -i 'repos/MyOrg/repo-b/stacks?per_page=1'` - returns `200`
`gh api -i 'repos/MyOrg/repo-a/stacks?per_page=1'` - returns `404`

----
`gh`: `2.97.0`
`gh-stack`: `0.1.0`

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia riproducendo `gh stack submit` in `repo-a` e confronta le risposte di `gh api` per `repo-a` e `repo-b`. Segui il controllo dello stato dello stack del repository nell’entry point di gh-stack, quindi individua perché l’endpoint restituisce 404 e verifica che l’invio funzioni correttamente per i repository nella stessa organizzazione.

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

Valutazione

Stack tecnologico
github, go
Ambito
api, cli
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
52/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.