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

Cannot change the default base branch `main` (GraphQL: Cannot change the base branch because the pull request is part of a stack. (updatePullRequest))

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

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
github, go
Domain
api, cli

Research direction

Start by reproducing the issue with gh pr edit --base <your-parent-branch> and inspect the reported updatePullRequest GraphQL error. Determine whether stacked pull requests can support changing the base branch, then document the limitation or define the behavior needed for staging and multi-feature workflows.

Written by the indexing model from the issue text.

Description

This feature could be better for code management if it can be used for projects with multiple environments since I cannot change the default base branch main to other branches (like staging, or to break a branch into many features and merge into it for better testing)

I have tried the following

# In your local repo
gh pr edit --base <your-parent-branch>

And I got

GraphQL: Cannot change the base branch because the pull request is part of a stack. (updatePullRequest)

I would love an update or explanation for this

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.