Repos in the same org not able to run `gh stack submit`
- Lenguaje dominante
- Go
- Estrellas
- 1.5k
- Forks
- 70
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 7
Descripción
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`
Guía de contribución
Línea de trabajo
Empieza reproduciendo `gh stack submit` en `repo-a` y compara las respuestas de `gh api` para `repo-a` y `repo-b`. Sigue la comprobación del estado del stack del repositorio en el punto de entrada de gh-stack; después, identifica por qué el endpoint devuelve 404 y verifica que el envío funcione correctamente para repositorios de la misma organización.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- github, go
- Área
- api, cli
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 52/100