Title: `gh stack sync` should tell you what branches it wants to prune on your behalf · Issue #162 · github/gh-stack · GitHub
Open Graph Title: `gh stack sync` should tell you what branches it wants to prune on your behalf · Issue #162 · github/gh-stack
X Title: `gh stack sync` should tell you what branches it wants to prune on your behalf · Issue #162 · github/gh-stack
Description: Here's a state where I just used gh stack sync after manually merging PR 2 in a stack of 7 PRs. Everything looks good, except Prune 1 merged branch is a bit unclear. I've already run gh stack sync after merging PR 1 too, so the branch fo...
Open Graph Description: Here's a state where I just used gh stack sync after manually merging PR 2 in a stack of 7 PRs. Everything looks good, except Prune 1 merged branch is a bit unclear. I've already run gh stack sync ...
X Description: Here's a state where I just used gh stack sync after manually merging PR 2 in a stack of 7 PRs. Everything looks good, except Prune 1 merged branch is a bit unclear. I've already run gh sta...
Opengraph URL: https://github.com/github/gh-stack/issues/162
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`gh stack sync` should tell you what branches it wants to prune on your behalf","articleBody":"Here's a state where I just used `gh stack sync` after manually merging PR 2 in a stack of 7 PRs.\n\n\u003cimg width=\"888\" height=\"488\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/4d68d179-971e-4980-a0e0-a70e3223b587\" /\u003e\n\nEverything looks good, except `Prune 1 merged branch` is a bit unclear.\n\nI've already run `gh stack sync` after merging PR 1 too, so the branch for PR 1, `feature/sources-1-oak-cache` is already gone.\n\nSo the 1 branch to prune must be referring to `feature/sources-2-oak-source`, which makes sense, but it requires me to kind of interpret between the lines here.\n\nIt would be a bit more obvious (and safer?) if `Prune 1 merged branch` just listed the names of the branches it wants to prune somewhere. You see them after you say `Y`, but that's a bit too late 😬 \n\n\u003cimg width=\"367\" height=\"116\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/0958cc7e-03d2-441e-adf8-66a2038fdaa0\" /\u003e","author":{"url":"https://github.com/DavisVaughan","@type":"Person","name":"DavisVaughan"},"datePublished":"2026-07-02T19:09:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/162/gh-stack/issues/162"}
| 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:768421fb-550c-21c2-d367-c6760207c759 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC8A:16195D:596B1AD:7DE109E:6A4FF619 |
| html-safe-nonce | 9ba187f8ff489375f9d323e4830f0b32bfed69bb7a8bb9bbc9fc6b4ed33652a8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzhBOjE2MTk1RDo1OTZCMUFEOjdERTEwOUU6NkE0RkY2MTkiLCJ2aXNpdG9yX2lkIjoiNTUxODM3MDc5NTEzODU1NTEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 351f2d690ec26890a750751bcfc88a098008186a36f5c859e53334173f451bcd |
| hovercard-subject-tag | issue:4797488690 |
| 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/162/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f4440784baec4eb1b0c5e37291a1f69edff47070aa7c8463011b86315b6459a6/github/gh-stack/issues/162 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f4440784baec4eb1b0c5e37291a1f69edff47070aa7c8463011b86315b6459a6/github/gh-stack/issues/162 |
| og:image:alt | Here's a state where I just used gh stack sync after manually merging PR 2 in a stack of 7 PRs. Everything looks good, except Prune 1 merged branch is a bit unclear. I've already run gh stack sync ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DavisVaughan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3bd0ff5d28a87b4801a63fb38c2a21a91b0a700dca159dc9416aeae05771b899 |
| 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 | 67a336083e4dcb40224dc2c01cd4c7ed413bdb09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width