github / github/gh-stack

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

Offen
#397 1 Kommentar 4 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug topic: merge queue
Vorherrschende Sprache
Go
Sterne
1.5k
Forks
70
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
7

Beschreibung

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`

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, `gh stack submit` in `repo-a` zu reproduzieren, und vergleiche die `gh api`-Antworten für `repo-a` und `repo-b`. Verfolge die Prüfung des Repository-Stack-Zustands im gh-stack-Einstiegspunkt. Ermittle dann, warum der Endpunkt 404 zurückgibt, und verifiziere, dass die Übermittlung für Repositorys in derselben Organisation korrekt funktioniert.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
github, go
Bereich
api, cli
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
52/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.