René's URL Explorer Experiment


Title: gh stack rebase: queued PR treated as merged, causing incorrect rebases for downstream branches · Issue #144 · github/gh-stack · GitHub

Open Graph Title: gh stack rebase: queued PR treated as merged, causing incorrect rebases for downstream branches · Issue #144 · github/gh-stack

X Title: gh stack rebase: queued PR treated as merged, causing incorrect rebases for downstream branches · Issue #144 · github/gh-stack

Description: Reproduction On a repo with stacked branches and PRs queued in the merge queue, run gh stack rebase. Example observed output from a user report: ➜ token-scanning-service git:(aerendel/mixed-content-types3) gh stack rebase ✓ Fetched origi...

Open Graph Description: Reproduction On a repo with stacked branches and PRs queued in the merge queue, run gh stack rebase. Example observed output from a user report: ➜ token-scanning-service git:(aerendel/mixed-content...

X Description: Reproduction On a repo with stacked branches and PRs queued in the merge queue, run gh stack rebase. Example observed output from a user report: ➜ token-scanning-service git:(aerendel/mixed-content...

Opengraph URL: https://github.com/github/gh-stack/issues/144

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"gh stack rebase: queued PR treated as merged, causing incorrect rebases for downstream branches","articleBody":"Reproduction\n\n1. On a repo with stacked branches and PRs queued in the merge queue, run `gh stack rebase`.\n2. Example observed output from a user report:\n\n```\n➜  token-scanning-service git:(aerendel/mixed-content-types3) gh stack rebase\n✓ Fetched origin\n✓ Trunk main fast-forwarded to aed1023\nStack detected: (main) \u003c- aerendel/mixed-content-types1 \u003c- aerendel/mixed-content-types2 \u003c- aerendel/mixed-content-types3\nRebasing branches in order, starting from aerendel/mixed-content-types1 to aerendel/mixed-content-types3\n✓ Skipping aerendel/mixed-content-types1 (PR #9333 queued)\n✓ Rebased aerendel/mixed-content-types2 onto main (adjusted for merged PR)\n✓ Rebased aerendel/mixed-content-types3 onto aerendel/mixed-content-types2 (adjusted for merged PR)\nAll branches in stack rebased locally with main\nTo push up your changes, run `gh stack push`\n```\n\nActual behavior\n\n- `gh stack rebase` treated a queued PR (PR #9333) as if it were merged when computing rebases for subsequent branches. The command skipped the first branch due to it being \"queued\", but then rebased the next branch \"adjusted for merged PR\", and treated the final branch as rebased onto the intermediate branch \"adjusted for merged PR\". This resulted in the second-layer branch being rebased as if the queued PR had already been merged.\n\nExpected behavior\n\n- Queued PRs in the merge queue (not yet merged into trunk) should NOT be treated as merged when computing rebases for downstream branches. `gh stack rebase` should preserve the stack order and rebase subsequent branches relative to the actual trunk and the true merge state (or otherwise clearly document and provide an option to treat queued PRs as merged).\n\nAdditional context\n\n- Command used: `gh stack rebase`\n- Observed in token-scanning-service example above (output pasted by user).\n\nSuggested fix ideas\n\n- Detect PRs that are only queued (not merged) and ensure they are not considered merged when adjusting base refs for downstream rebases.\n- Add a flag or mode to opt-in to \"treat queued PRs as merged\" if there are valid workflows that expect that behavior.\n\nPlease let me know if you need logs or more reproduction details; the user who reported this is the original author of the pasted stack output.\n\n[View original Slack conversation](https://github.slack.com/archives/C09M2GA1KQX/p1782322028230539?thread_ts=1782322028.230539\u0026cid=C09M2GA1KQX)","author":{"url":"https://github.com/skarim","@type":"Person","name":"skarim"},"datePublished":"2026-06-24T17:45:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/144/gh-stack/issues/144"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d35c2b31-4082-6bc9-5718-1bb8225544f2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAF30:11B239:DBEFBC:1353F3B:6A4FE5EC
html-safe-nonced65af71d0985ac57f38c0f5c5901260d875a378266162654cd0d66a4fb072d7d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjMwOjExQjIzOTpEQkVGQkM6MTM1M0YzQjo2QTRGRTVFQyIsInZpc2l0b3JfaWQiOiIyNTQxMzc2MzI4ODYwNDI3NzU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0238b9901d84bc40fa406737cd92f8c71a4086666d9858f9b437553f74226f52
hovercard-subject-tagissue:4737130427
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/gh-stack/144/issue_layout
twitter:imagehttps://opengraph.githubassets.com/292908704b4738c8c4cf47771c97904906572ff2f192476885d32b1a7dd5c51c/github/gh-stack/issues/144
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/292908704b4738c8c4cf47771c97904906572ff2f192476885d32b1a7dd5c51c/github/gh-stack/issues/144
og:image:altReproduction On a repo with stacked branches and PRs queued in the merge queue, run gh stack rebase. Example observed output from a user report: ➜ token-scanning-service git:(aerendel/mixed-content...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameskarim
hostnamegithub.com
expected-hostnamegithub.com
None19b98c3d9767bb8a56238a89ff8401d1cbdf3bc5c353799aacf49fe6c76b4b7c
turbo-cache-controlno-preview
go-importgithub.com/github/gh-stack git https://github.com/github/gh-stack.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id1151630728
octolytics-dimension-repository_nwogithub/gh-stack
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1151630728
octolytics-dimension-repository_network_root_nwogithub/gh-stack
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release142593e66413bbae27fd485859993597d5a3b104
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/gh-stack/issues/144#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgh-stack%2Fissues%2F144
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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%2Fissues%2F144
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%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=github%2Fgh-stack
Reloadhttps://github.com/github/gh-stack/issues/144
Reloadhttps://github.com/github/gh-stack/issues/144
Reloadhttps://github.com/github/gh-stack/issues/144
Please reload this pagehttps://github.com/github/gh-stack/issues/144
github https://github.com/github
gh-stackhttps://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
Bughttps://github.com/github/gh-stack/issues?q=type:"Bug"
gh stack rebase: queued PR treated as merged, causing incorrect rebases for downstream brancheshttps://github.com/github/gh-stack/issues/144#top
https://github.com/skarim
skarimhttps://github.com/skarim
on Jun 24, 2026https://github.com/github/gh-stack/issues/144#issue-4737130427
View original Slack conversationhttps://github.slack.com/archives/C09M2GA1KQX/p1782322028230539?thread_ts=1782322028.230539&cid=C09M2GA1KQX
Bughttps://github.com/github/gh-stack/issues?q=type:"Bug"
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.