github / github/gh-stack

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

オープン
#397 コメント 1 件 リアクション 4 件 担当者 0 名 GitHub で見る
bug topic: merge queue
主要言語
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。