Repos in the same org not able to run `gh stack submit`
- 主要言語
- Go
- スター
- 1.5k
- フォーク
- 70
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 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 のエントリーポイントでリポジトリのスタック状態チェックを追跡し、その後、エンドポイントが 404 を返す理由を特定して、同じ組織に属するリポジトリで submission が正しく動作することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- github, go
- 領域
- api, cli
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 52/100