github / github/gh-stack

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

Open
#397 1 comment 4 reactions 0 assignees View on GitHub
bug topic: merge queue
Dominant language
Go
Stars
1.5k
Forks
70
Avg merge
1d 8h
Merged PRs (30d)
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`

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `gh stack submit` in `repo-a` and compare the `gh api` responses for `repo-a` and `repo-b`. Trace the repository stack-state check in the gh-stack entry point, then identify why the endpoint returns 404 and verify that submission behaves correctly for repositories in the same organization.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, go
Domain
api, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.