Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#397 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

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.

Description

bug topic: merge queue

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

Dominant language
Go
Stars
1.5k
Forks
73
Avg merge
1d 8h
Merged PRs (30d)
7

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/gh-stack

All issues in github/gh-stack

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.