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

Incorrect "PR #5 remains open" remains open after git stack modify for a PR that is already closed

Open
#453 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start with the git stack modify save flow, including the gs modify output that reports a dropped layer as still open. Check how the GitHub PR state is obtained before that message; done when a PR already closed in GitHub is not reported as open after the layer is deleted.

Written by the indexing model from the issue text.

Description

bug topic: cli - modify
  1. Use gs submit to create stack with depth 2. Let's say branch names layer1 and layer2
  2. I close the PR for layer2 in the GitHub UI
  3. I want to remove the stack locally, so I use git stack modify, press x to delete the layer, and then Control+S to save.

I get the following output

$ gs modify
✓ Dropped layer2 from stack

✓ Stack modified successfully
  Dropped: layer 2(PR #53155 remains open — close with `gh pr close 53155`)

Run `gh stack submit` to push your changes and update the stack of PRs on GitHub

Now gh cli can clearly tell the PR is already closed, because when I try to close it:

$ gh pr close 53155
! Pull request repo#53155 (PR Title) is already closed

I think a fix will be doing a resync on the state from GitHub before showing this message.

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.