Repos in the same org not able to run `gh stack submit`
- Langage dominant
- Go
- Étoiles
- 1.5k
- Forks
- 70
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 7
Description
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`
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire `gh stack submit` dans `repo-a` et comparez les réponses de `gh api` pour `repo-a` et `repo-b`. Suivez la vérification de l’état de la stack du dépôt dans le point d’entrée de gh-stack, puis identifiez pourquoi le endpoint renvoie 404 et vérifiez que la soumission se comporte correctement pour les dépôts de la même organisation.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- github, go
- Domaine
- api, cli
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 52/100