Title: `gh stack sync` merged approved PRs into bottom branch · Issue #155 · github/gh-stack · GitHub
Open Graph Title: `gh stack sync` merged approved PRs into bottom branch · Issue #155 · github/gh-stack
X Title: `gh stack sync` merged approved PRs into bottom branch · Issue #155 · github/gh-stack
Description: Reproduction steps: Create a stack of PRs tailscale/tailscale#19642 tailscale/tailscale#19643 tailscale/tailscale#19658 tailscale/tailscale#19950 Approve all of them Run git stack sync Actual result sfllaw@h2co3:~/src/tailscale_sfllaw-ro...
Open Graph Description: Reproduction steps: Create a stack of PRs tailscale/tailscale#19642 tailscale/tailscale#19643 tailscale/tailscale#19658 tailscale/tailscale#19950 Approve all of them Run git stack sync Actual resul...
X Description: Reproduction steps: Create a stack of PRs tailscale/tailscale#19642 tailscale/tailscale#19643 tailscale/tailscale#19658 tailscale/tailscale#19950 Approve all of them Run git stack sync Actual resul...
Opengraph URL: https://github.com/github/gh-stack/issues/155
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`gh stack sync` merged approved PRs into bottom branch","articleBody":"### Reproduction steps:\n\n1. Create a stack of PRs\n - tailscale/tailscale#19642\n - tailscale/tailscale#19643\n - tailscale/tailscale#19658\n - tailscale/tailscale#19950\n2. Approve all of them\n3. Run `git stack sync`\n\n### Actual result\n\n``` console\nsfllaw@h2co3:~/src/tailscale_sfllaw-routecheck-for-reachability$ gh stack sync\n✓ Fetched latest changes from origin\n⚠ Failed to fast-forward main: failed to run git: fatal: cannot force update the branch 'main' used by worktree at '/home/sfllaw/Projects/tailscale'\n\n\nRebasing stack ...\n✓ Rebased sfllaw/routecheck-for-reachability onto main\n✓ Rebased sfllaw/routecheck/tailscale-routecheck-cli-jsonoutput onto sfllaw/routecheck-for-reachability\n✓ Rebased sfllaw/routecheck/suggest-exit-node-force-probe onto sfllaw/routecheck/tailscale-routecheck-cli-jsonoutput\n✓ Rebased sfllaw/routecheck/suggest-exit-node onto sfllaw/routecheck/suggest-exit-node-force-probe\n✓ Rebased sfllaw/routecheck/background-probing onto sfllaw/routecheck/suggest-exit-node\n\nPushing 5 branches to origin...\n✓ Pushed 5 branches\n\nSyncing PRs ...\n⚠ sfllaw/routecheck-for-reachability has no PR\n✓ PR #19950 (sfllaw/routecheck/tailscale-routecheck-cli-jsonoutput) — Open\n✓ PR #19658 (sfllaw/routecheck/suggest-exit-node-force-probe) — Open\n✓ PR #19643 (sfllaw/routecheck/suggest-exit-node) — Open\n✓ PR #19642 (sfllaw/routecheck/background-probing) — Open\n\n✓ Stack synced\nsfllaw@h2co3:~/src/tailscale_sfllaw-routecheck-for-reachability$ gh stack view --short\n├ sfllaw/routecheck/background-probing ○ #19642\n├─── merged ────\n│ sfllaw/routecheck/suggest-exit-node ✓ #19643\n│ sfllaw/routecheck/suggest-exit-node-force-probe ✓ #19658\n│ sfllaw/routecheck/tailscale-routecheck-cli-jsonoutput ✓ #19950\n» sfllaw/routecheck-for-reachability (current)\n└ main\n```\n\n### Expected result\n\nI didn’t expect any auto-merging. `git stack sync` should have just rebased and updated the refs:\n\n``` console\nsfllaw@h2co3:~/src/tailscale_sfllaw-routecheck-for-reachability$ gh stack view --short\n│ sfllaw/routecheck/background-probing ○ #19642\n│ sfllaw/routecheck/suggest-exit-node ○ #19643\n│ sfllaw/routecheck/suggest-exit-node-force-probe ○ #19658\n│ sfllaw/routecheck/tailscale-routecheck-cli-jsonoutput ○ #19950\n» sfllaw/routecheck-for-reachability (current)\n└ main\n```\n\n### Related\n\n- #144","author":{"url":"https://github.com/sfllaw","@type":"Person","name":"sfllaw"},"datePublished":"2026-06-29T17:19:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/155/gh-stack/issues/155"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1cc65a50-723a-578b-01f6-96329fa3d1a9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CCC2:10B1AF:2E59225:414399C:6A50E8DF |
| html-safe-nonce | 9c2f11c76c1354dc4542f7e89711641b2cc2d9f24d9780ffcb2c50cb876f6e6b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0MyOjEwQjFBRjoyRTU5MjI1OjQxNDM5OUM6NkE1MEU4REYiLCJ2aXNpdG9yX2lkIjoiMzg3ODU2MTc1MzA1NTk0Njk3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f7393f8ff9f0621161216952749e5002e672c4a4ad4ba50446679dd77cf98c00 |
| hovercard-subject-tag | issue:4770196262 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/gh-stack/155/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eec61593be842902a5e837d3c8a421bdee859e2a04a31fa7b5f2d24380d7715f/github/gh-stack/issues/155 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eec61593be842902a5e837d3c8a421bdee859e2a04a31fa7b5f2d24380d7715f/github/gh-stack/issues/155 |
| og:image:alt | Reproduction steps: Create a stack of PRs tailscale/tailscale#19642 tailscale/tailscale#19643 tailscale/tailscale#19658 tailscale/tailscale#19950 Approve all of them Run git stack sync Actual resul... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sfllaw |
| hostname | github.com |
| expected-hostname | github.com |
| None | 72b13e0e8d0319acdd27a145cfe73f4f06c791713d0ac4690e41fb68ad28cac0 |
| turbo-cache-control | no-preview |
| go-import | github.com/github/gh-stack git https://github.com/github/gh-stack.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 1151630728 |
| octolytics-dimension-repository_nwo | github/gh-stack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1151630728 |
| octolytics-dimension-repository_network_root_nwo | github/gh-stack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fb19d617b534959801b4b7453938ecf1dfa22131 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width