| route-pattern | /:user_id/:repository/pull/*id(.:format) |
| route-controller | pull_requests |
| route-action | show |
| fetch-nonce | v2:79dd0517-8eae-048d-d5bf-07303d5e3bca |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D9D4:12F35E:3B6A2B8:5502AF2:6A4FD987 |
| html-safe-nonce | 5404d0b0886f84b28e2a8d72ec99e43c6a695069bc1af748595042c1c7fa7f2f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUQ0OjEyRjM1RTozQjZBMkI4OjU1MDJBRjI6NkE0RkQ5ODciLCJ2aXNpdG9yX2lkIjoiMTc5NzkzMTI2Mzg4Mjk0Mjg1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c85fb12f31b6d3fbd90cc3fc3a6fa189b939e6e256770ef4b6b8737253a74fe0 |
| hovercard-subject-tag | pull_request:3690134896 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/github/gh-stack/pull/94 |
| twitter:image | https://opengraph.githubassets.com/99fa6f678ff230acde84100b8e5eb5bc440391eb053996273ed12d1fd47f6279/github/gh-stack/pull/94 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/99fa6f678ff230acde84100b8e5eb5bc440391eb053996273ed12d1fd47f6279/github/gh-stack/pull/94 |
| og:image:alt | Prune merged branches during sync
Add a --prune flag to gh stack sync that deletes local branches (and their remote-tracking refs) for merged PRs. In interactive terminals, users are prompted if th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | skarim |
| hostname | github.com |
| expected-hostname | github.com |
| None | 19b98c3d9767bb8a56238a89ff8401d1cbdf3bc5c353799aacf49fe6c76b4b7c |
| turbo-cache-control | no-cache |
| 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 | 142593e66413bbae27fd485859993597d5a3b104 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/github/gh-stack/pull/94#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgh-stack%2Fpull%2F94 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgh-stack%2Fpull%2F94 |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow&source=header-repo&source_repo=github%2Fgh-stack |
| Reload | https://github.com/github/gh-stack/pull/94 |
| Reload | https://github.com/github/gh-stack/pull/94 |
| Reload | https://github.com/github/gh-stack/pull/94 |
| Please reload this page | https://github.com/github/gh-stack/pull/94 |
|
github
| https://github.com/github |
| gh-stack | https://github.com/github/gh-stack |
|
Notifications
| https://github.com/login?return_to=%2Fgithub%2Fgh-stack |
|
Fork
18
| https://github.com/login?return_to=%2Fgithub%2Fgh-stack |
|
Star
511
| https://github.com/login?return_to=%2Fgithub%2Fgh-stack |
|
Code
| https://github.com/github/gh-stack |
|
Issues
25
| https://github.com/github/gh-stack/issues |
|
Pull requests
5
| https://github.com/github/gh-stack/pulls |
|
Discussions
| https://github.com/github/gh-stack/discussions |
|
Actions
| https://github.com/github/gh-stack/actions |
|
Projects
| https://github.com/github/gh-stack/projects |
|
Models
| https://github.com/github/gh-stack/models |
|
Security and quality
0
| https://github.com/github/gh-stack/security |
|
Insights
| https://github.com/github/gh-stack/pulse |
|
Code
| https://github.com/github/gh-stack |
|
Issues
| https://github.com/github/gh-stack/issues |
|
Pull requests
| https://github.com/github/gh-stack/pulls |
|
Discussions
| https://github.com/github/gh-stack/discussions |
|
Actions
| https://github.com/github/gh-stack/actions |
|
Projects
| https://github.com/github/gh-stack/projects |
|
Models
| https://github.com/github/gh-stack/models |
|
Security and quality
| https://github.com/github/gh-stack/security |
|
Insights
| https://github.com/github/gh-stack/pulse |
| skarim | https://github.com/skarim |
| skarim/rebase-docs | https://github.com/github/gh-stack/tree/skarim/rebase-docs |
| skarim/prune-merged-branches | https://github.com/github/gh-stack/tree/skarim/prune-merged-branches |
| Conversation | https://github.com/github/gh-stack/pull/94 |
| Commits8 (8) | https://github.com/github/gh-stack/pull/94/commits |
| Checks | https://github.com/github/gh-stack/pull/94/checks |
| Files changed | https://github.com/github/gh-stack/pull/94/files |
| prune merged branches | https://github.com/github/gh-stack/pull/94#top |
| skarim | https://github.com/skarim |
| skarim/rebase-docs | https://github.com/github/gh-stack/tree/skarim/rebase-docs |
| skarim/prune-merged-branches | https://github.com/github/gh-stack/tree/skarim/prune-merged-branches |
|
| https://github.com/skarim |
| skarim | https://github.com/skarim |
| May 15, 2026 | https://github.com/github/gh-stack/pull/94#issue-4454598991 |
| Please reload this page | https://github.com/github/gh-stack/pull/94 |
| GitHub Stacks CLI | https://github.com/github/gh-stack |
| Give Feedback 💬 | https://gh.io/stacks-feedback |
| Please reload this page | https://github.com/github/gh-stack/pull/94 |
| skarim | https://github.com/skarim |
| May 15, 2026 10:25 | https://github.com/github/gh-stack/pull/94#commits-pushed-677a702 |
|
| https://github.com/skarim |
| prune merged branches | https://github.com/github/gh-stack/pull/94/commits/677a702da414d4325425cbcce14910b4c405c08a |
| 677a702 | https://github.com/github/gh-stack/pull/94/commits/677a702da414d4325425cbcce14910b4c405c08a |
|
| https://github.com/skarim |
| interactively prompt for prune | https://github.com/github/gh-stack/pull/94/commits/4a30bb65ee50cd6e57dc26b93d1560bb53507ed7 |
| 4a30bb6 | https://github.com/github/gh-stack/pull/94/commits/4a30bb65ee50cd6e57dc26b93d1560bb53507ed7 |
|
| https://github.com/skarim |
| delete remote tracking ref too | https://github.com/github/gh-stack/pull/94/commits/c9d9ad6a5e8478dfeb0459e16192b84963a249ee |
| c9d9ad6 | https://github.com/github/gh-stack/pull/94/commits/c9d9ad6a5e8478dfeb0459e16192b84963a249ee |
|
| https://github.com/skarim |
| disable selecting merged branches in TUIs | https://github.com/github/gh-stack/pull/94/commits/691f469d85519207a9c2e572fe355ea941b3fa17 |
| 691f469 | https://github.com/github/gh-stack/pull/94/commits/691f469d85519207a9c2e572fe355ea941b3fa17 |
|
| https://github.com/skarim |
| include full list (including merged PRs) in PUT request to stacks API | https://github.com/github/gh-stack/pull/94/commits/d985618c85fa23b40426e78e91cbdd14c5529400 |
| d985618 | https://github.com/github/gh-stack/pull/94/commits/d985618c85fa23b40426e78e91cbdd14c5529400 |
| https://github.com/skarim |
| skarim | https://github.com/skarim |
| force-pushed | https://github.com/github/gh-stack/compare/a309b6a50d7af1ed1542cd10e5101aa9ad4d60ca..d985618c85fa23b40426e78e91cbdd14c5529400 |
| a309b6a | https://github.com/github/gh-stack/commit/a309b6a50d7af1ed1542cd10e5101aa9ad4d60ca |
| d985618 | https://github.com/github/gh-stack/commit/d985618c85fa23b40426e78e91cbdd14c5529400 |
|
Compare
| https://github.com/github/gh-stack/compare/a309b6a50d7af1ed1542cd10e5101aa9ad4d60ca..d985618c85fa23b40426e78e91cbdd14c5529400 |
| May 15, 2026 14:25 | https://github.com/github/gh-stack/pull/94#event-25579284749 |
|
| https://github.com/skarim |
| add prune to docs | https://github.com/github/gh-stack/pull/94/commits/bfebb7f26fcc61e66b2b384ff04ffe99715eb878 |
| bfebb7f | https://github.com/github/gh-stack/pull/94/commits/bfebb7f26fcc61e66b2b384ff04ffe99715eb878 |
| https://github.com/skarim |
| skarim | https://github.com/skarim |
| May 15, 2026 15:38 | https://github.com/github/gh-stack/pull/94#event-25582269767 |
|
| https://github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| May 15, 2026 15:38 | https://github.com/github/gh-stack/pull/94#event-25582270370 |
| started reviewing | https://github.com/github/gh-stack/sessions/d3732b35-2ca8-4904-892b-6ee664fc3576 |
| skarim | https://github.com/skarim |
| May 15, 2026 15:39 | https://github.com/github/gh-stack/pull/94#event-25582291005 |
|
View session
| https://github.com/github/gh-stack/sessions/d3732b35-2ca8-4904-892b-6ee664fc3576 |
|
| https://github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
|
May 15, 2026
| https://github.com/github/gh-stack/pull/94#pullrequestreview-4299441171 |
|
View reviewed changes
| https://github.com/github/gh-stack/pull/94/files/bfebb7f26fcc61e66b2b384ff04ffe99715eb878 |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| https://github.com/github/gh-stack/pull/94#pullrequestreview-4299441171 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Add Copilot custom instructions | https://github.com/github/gh-stack/new/skarim/rebase-docs?filename=.github/instructions/*.instructions.md |
| Learn how to get started | https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot |
| Please reload this page | https://github.com/github/gh-stack/pull/94 |
| cmd/sync.go | https://github.com/github/gh-stack/pull/94/files/bfebb7f26fcc61e66b2b384ff04ffe99715eb878#diff-6f5f9ca9ac82cbfb03857438b7f2b2373c6ddf3db19f1f68e7074242baebaadc |
| Please reload this page | https://github.com/github/gh-stack/pull/94 |
| cmd/sync.go | https://github.com/github/gh-stack/pull/94/files/bfebb7f26fcc61e66b2b384ff04ffe99715eb878#diff-6f5f9ca9ac82cbfb03857438b7f2b2373c6ddf3db19f1f68e7074242baebaadc |
| Please reload this page | https://github.com/github/gh-stack/pull/94 |
| cmd/sync.go | https://github.com/github/gh-stack/pull/94/files/bfebb7f26fcc61e66b2b384ff04ffe99715eb878#diff-6f5f9ca9ac82cbfb03857438b7f2b2373c6ddf3db19f1f68e7074242baebaadc |
| Please reload this page | https://github.com/github/gh-stack/pull/94 |
| skarim | https://github.com/skarim |
| May 15, 2026 12:50 | https://github.com/github/gh-stack/pull/94#commits-pushed-3f3acde |
|
| https://github.com/skarim |
| addressing review comments | https://github.com/github/gh-stack/pull/94/commits/3f3acde842968778ab5ccffb17b009740ba3e318 |
| 3f3acde | https://github.com/github/gh-stack/pull/94/commits/3f3acde842968778ab5ccffb17b009740ba3e318 |
|
| https://github.com/skarim |
| increment skill file version | https://github.com/github/gh-stack/pull/94/commits/4e3421bcc17094cc3a0d3c9b2741edb2886d2e21 |
| 4e3421b | https://github.com/github/gh-stack/pull/94/commits/4e3421bcc17094cc3a0d3c9b2741edb2886d2e21 |
| https://github.com/ktravers |
| ktravers | https://github.com/ktravers |
|
May 15, 2026
| https://github.com/github/gh-stack/pull/94#pullrequestreview-4300023467 |
|
View reviewed changes
| https://github.com/github/gh-stack/pull/94/files/4e3421bcc17094cc3a0d3c9b2741edb2886d2e21 |
| ktravers | https://github.com/ktravers |
| https://github.com/github/gh-stack/pull/94#pullrequestreview-4300023467 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/github/gh-stack/pull/94 |
| https://github.com/skarim |
| skarim | https://github.com/skarim |
| d3be1b5 | https://github.com/github/gh-stack/commit/d3be1b577ecd52ae7f6b01e1da31c7a8d999c999 |
| May 15, 2026 | https://github.com/github/gh-stack/pull/94#event-25587213076 |
| Please reload this page | https://github.com/github/gh-stack/pull/94 |
| https://github.com/skarim |
| skarim | https://github.com/skarim |
| May 15, 2026 18:01 | https://github.com/github/gh-stack/pull/94#event-25587217193 |
|
delete branches from stack that has been merged
#55
| https://github.com/github/gh-stack/issues/55 |
|
[bug] local branch not deleted on restack
#23
| https://github.com/github/gh-stack/issues/23 |
| ryanclark | https://github.com/ryanclark |
|
Jun 19, 2026
| https://github.com/github/gh-stack/pull/94#ref-commit-89cbccc |
|
| https://github.com/ryanclark |
| Pull in upstream gh-stack bug fixes and standard-API features | https://github.com/ryanclark/gh-stack/commit/89cbccc92df83ac9688d7ef28171a9de060341b6 |
| 89cbccc | https://github.com/ryanclark/gh-stack/commit/89cbccc92df83ac9688d7ef28171a9de060341b6 |
| github#56 | https://github.com/github/gh-stack/pull/56 |
| github#41 | https://github.com/github/gh-stack/pull/41 |
| github#42 | https://github.com/github/gh-stack/pull/42 |
| github#43 | https://github.com/github/gh-stack/pull/43 |
| github#39 | https://github.com/github/gh-stack/pull/39 |
| github#95 | https://github.com/github/gh-stack/pull/95 |
| github#80 | https://github.com/github/gh-stack/pull/80 |
| github#49 | https://github.com/github/gh-stack/pull/49 |
| github#108 | https://github.com/github/gh-stack/pull/108 |
| github#51 | https://github.com/github/gh-stack/pull/51 |
| github#74 | https://github.com/github/gh-stack/pull/74 |
| github#101 | https://github.com/github/gh-stack/pull/101 |
| github#40 | https://github.com/github/gh-stack/pull/40 |
| github#76 | https://github.com/github/gh-stack/pull/76 |
| github#77 | https://github.com/github/gh-stack/pull/77 |
| github#94 | https://github.com/github/gh-stack/pull/94 |
| github#103 | https://github.com/github/gh-stack/pull/103 |
| github#110 | https://github.com/github/gh-stack/pull/110 |
| github#89 | https://github.com/github/gh-stack/pull/89 |
| https://github.co/hiddenchars |
| https://github.com/github/gh-stack/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgh-stack%2Fpull%2F94 |
|
Copilot code review
| https://github.com/apps/copilot-pull-request-reviewer |
|
Copilot
| https://github.com/apps/copilot-pull-request-reviewer |
|
| https://github.com/github/gh-stack/pull/94/files/bfebb7f26fcc61e66b2b384ff04ffe99715eb878 |
|
| https://github.com/ktravers |
|
ktravers
| https://github.com/ktravers |
|
| https://github.com/github/gh-stack/pull/94/files/4e3421bcc17094cc3a0d3c9b2741edb2886d2e21 |
| Please reload this page | https://github.com/github/gh-stack/pull/94 |
|
| https://github.com/skarim |
|
| https://github.com/ktravers |
|
| https://github.com/apps/copilot-pull-request-reviewer |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |