Repos in the same org not able to run `gh stack submit`
- 主要语言
- Go
- 星标
- 1.5k
- 派生
- 70
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 7
描述
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`
贡献指南
调研方向
首先在 `repo-a` 中复现 `gh stack submit`,并比较针对 `repo-a` 和 `repo-b` 的 `gh api` 响应。在 gh-stack 入口点跟踪仓库 stack 状态检查,然后确定 endpoint 返回 404 的原因,并验证对于同一组织中的仓库,提交行为是否正确。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- github, go
- 领域
- api, cli
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 52/100