René's URL Explorer Experiment


Title: disable automerge when adding existing PRs to stack by skarim · Pull Request #120 · github/gh-stack · GitHub

Open Graph Title: disable automerge when adding existing PRs to stack by skarim · Pull Request #120 · github/gh-stack

X Title: disable automerge when adding existing PRs to stack by skarim · Pull Request #120 · github/gh-stack

Description: Disable auto-merge on existing PRs during submit When gh stack submit discovers an existing PR for a branch, that PR may have auto-merge enabled. Auto-merge is incompatible with stacked PRs because the PR would merge independently, breaking the stack's base chain. Previously, users could work around the link command's auto-merge guard by running init on a branch with an auto-merge-enabled PR, then submit to add it to a stack. The submit command had no auto-merge check, so the PR was adopted without any validation. This change adds auto-merge detection to submit's ensurePR function. When an existing PR with auto-merge enabled is found, the CLI automatically disables auto-merge via the disablePullRequestAutoMerge GraphQL mutation and warns the user. If the disable call fails, submit continues with a warning (non-fatal). Changes internal/github/github.go: add DisableAutoMerge() method using the disablePullRequestAutoMerge GraphQL mutation internal/github/client_interface.go: add DisableAutoMerge to ClientOps interface internal/github/mock_client.go: add DisableAutoMergeFn field and mock implementation cmd/submit.go: in ensurePR, detect auto-merge-enabled PRs and disable auto-merge before adding to the stack cmd/submit_test.go: 3 new tests — auto-merge disabled successfully, disable failure continues with warning, and no-op when auto-merge is not enabled Stack created with GitHub Stacks CLI • Give Feedback 💬

Open Graph Description: Disable auto-merge on existing PRs during submit When gh stack submit discovers an existing PR for a branch, that PR may have auto-merge enabled. Auto-merge is incompatible with stacked PRs because...

X Description: Disable auto-merge on existing PRs during submit When gh stack submit discovers an existing PR for a branch, that PR may have auto-merge enabled. Auto-merge is incompatible with stacked PRs because...

Opengraph URL: https://github.com/github/gh-stack/pull/120

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:d6f87fa5-a60f-860c-0d77-2f340ef6dd8c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD05E:2086C7:7489157:A3EF21E:6A50136D
html-safe-nonce246b88cde265f4976071a3de8e8f7d1d635a9f13e5dd5fbfa91b5792239a443c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDVFOjIwODZDNzo3NDg5MTU3OkEzRUYyMUU6NkE1MDEzNkQiLCJ2aXNpdG9yX2lkIjoiODU1NDQ0MDUxNTg5ODA1MzQ4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7ca9c5352e0fcc4dd943308cdc5f226a9fdc6ee30bb41ed01d894a6f2d9373df
hovercard-subject-tagpull_request:3852645616
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/github/gh-stack/pull/120/files
twitter:imagehttps://avatars.githubusercontent.com/u/1701557?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1701557?s=400&v=4
og:image:altDisable auto-merge on existing PRs during submit When gh stack submit discovers an existing PR for a branch, that PR may have auto-merge enabled. Auto-merge is incompatible with stacked PRs because...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonefe4f38b24922a1ce81c1708c3793b47c185599b9144ab94f6ca846b00698058d
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release42b6390c91978a16f9196c38c7a00e9bf21f37e7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/gh-stack/pull/120/changes#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgh-stack%2Fpull%2F120%2Ffiles
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%2Fpull%2F120%2Ffiles
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%2Ffiles&source=header-repo&source_repo=github%2Fgh-stack
Reloadhttps://github.com/github/gh-stack/pull/120/changes
Reloadhttps://github.com/github/gh-stack/pull/120/changes
Reloadhttps://github.com/github/gh-stack/pull/120/changes
Please reload this pagehttps://github.com/github/gh-stack/pull/120/changes
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
Sign up for GitHub https://github.com/signup?return_to=%2Fgithub%2Fgh-stack%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgithub%2Fgh-stack%2Fissues%2Fnew%2Fchoose
skarimhttps://github.com/skarim
skarim/api-token-warninghttps://github.com/github/gh-stack/tree/skarim/api-token-warning
skarim/disable-automerge-on-adopthttps://github.com/github/gh-stack/tree/skarim/disable-automerge-on-adopt
Conversation 5 https://github.com/github/gh-stack/pull/120
Findings https://github.com/github/gh-stack/pull/120/findings
Commits 1 https://github.com/github/gh-stack/pull/120/commits
Checks 3 https://github.com/github/gh-stack/pull/120/checks
Files changed https://github.com/github/gh-stack/pull/120/files
Please reload this pagehttps://github.com/github/gh-stack/pull/120/changes
disable automerge when adding existing PRs to stack https://github.com/github/gh-stack/pull/120/changes#top
Show all changes 1 commit https://github.com/github/gh-stack/pull/120/files
7705493 submit: disable auto-merge on existing PRs before adding to stack skarim Jun 12, 2026 https://github.com/github/gh-stack/pull/120/commits/77054935a2782cb39b930088bdaaead1d38c3258
Clear filters https://github.com/github/gh-stack/pull/120/files
Please reload this pagehttps://github.com/github/gh-stack/pull/120/changes
Please reload this pagehttps://github.com/github/gh-stack/pull/120/changes
submit.go https://github.com/github/gh-stack/pull/120/changes#diff-f52729ee586405b4173291bbf009f1e69ff61c2aa42149ae5ec1fc81a805b1fc
submit_test.go https://github.com/github/gh-stack/pull/120/changes#diff-ec07a7a2393308fd27f9316500d4752e857a4ee1c07b223bb5cdbe0857233a7c
client_interface.go https://github.com/github/gh-stack/pull/120/changes#diff-74eff9e580e749e6ee746277fd91ea17e47519c9524830b16fdc33ca687d7c1f
github.go https://github.com/github/gh-stack/pull/120/changes#diff-ba9a81d402c41754e4e18c09693a602ff36de97f5e42e105a0a613201844e6ef
mock_client.go https://github.com/github/gh-stack/pull/120/changes#diff-b72c23d7f5564a71582acdae3ee06ea8545b913ede7a18466e033b603ddf2762
https://github.com/github/gh-stack/blob/main/CODEOWNERS#L2
cmd/submit.gohttps://github.com/github/gh-stack/pull/120/changes#diff-f52729ee586405b4173291bbf009f1e69ff61c2aa42149ae5ec1fc81a805b1fc
View file https://github.com/github/gh-stack/blob/77054935a2782cb39b930088bdaaead1d38c3258/cmd/submit.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/gh-stack/pull/120/{{ revealButtonHref }}
https://github.com/github/gh-stack/pull/120/changes#diff-f52729ee586405b4173291bbf009f1e69ff61c2aa42149ae5ec1fc81a805b1fc
https://github.com/github/gh-stack/pull/120/changes#diff-f52729ee586405b4173291bbf009f1e69ff61c2aa42149ae5ec1fc81a805b1fc
https://github.com/github/gh-stack/blob/main/CODEOWNERS#L2
cmd/submit_test.gohttps://github.com/github/gh-stack/pull/120/changes#diff-ec07a7a2393308fd27f9316500d4752e857a4ee1c07b223bb5cdbe0857233a7c
View file https://github.com/github/gh-stack/blob/77054935a2782cb39b930088bdaaead1d38c3258/cmd/submit_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/gh-stack/pull/120/{{ revealButtonHref }}
https://github.com/github/gh-stack/pull/120/changes#diff-ec07a7a2393308fd27f9316500d4752e857a4ee1c07b223bb5cdbe0857233a7c
https://github.com/github/gh-stack/blob/main/CODEOWNERS#L2
internal/github/client_interface.gohttps://github.com/github/gh-stack/pull/120/changes#diff-74eff9e580e749e6ee746277fd91ea17e47519c9524830b16fdc33ca687d7c1f
View file https://github.com/github/gh-stack/blob/77054935a2782cb39b930088bdaaead1d38c3258/internal/github/client_interface.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/gh-stack/pull/120/{{ revealButtonHref }}
https://github.com/github/gh-stack/pull/120/changes#diff-74eff9e580e749e6ee746277fd91ea17e47519c9524830b16fdc33ca687d7c1f
https://github.com/github/gh-stack/pull/120/changes#diff-74eff9e580e749e6ee746277fd91ea17e47519c9524830b16fdc33ca687d7c1f
https://github.com/github/gh-stack/blob/main/CODEOWNERS#L2
internal/github/github.gohttps://github.com/github/gh-stack/pull/120/changes#diff-ba9a81d402c41754e4e18c09693a602ff36de97f5e42e105a0a613201844e6ef
View file https://github.com/github/gh-stack/blob/77054935a2782cb39b930088bdaaead1d38c3258/internal/github/github.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/gh-stack/pull/120/{{ revealButtonHref }}
https://github.com/github/gh-stack/pull/120/changes#diff-ba9a81d402c41754e4e18c09693a602ff36de97f5e42e105a0a613201844e6ef
https://github.com/github/gh-stack/pull/120/changes#diff-ba9a81d402c41754e4e18c09693a602ff36de97f5e42e105a0a613201844e6ef
https://github.com/github/gh-stack/blob/main/CODEOWNERS#L2
internal/github/mock_client.gohttps://github.com/github/gh-stack/pull/120/changes#diff-b72c23d7f5564a71582acdae3ee06ea8545b913ede7a18466e033b603ddf2762
View file https://github.com/github/gh-stack/blob/77054935a2782cb39b930088bdaaead1d38c3258/internal/github/mock_client.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/gh-stack/pull/120/{{ revealButtonHref }}
https://github.com/github/gh-stack/pull/120/changes#diff-b72c23d7f5564a71582acdae3ee06ea8545b913ede7a18466e033b603ddf2762
https://github.com/github/gh-stack/pull/120/changes#diff-b72c23d7f5564a71582acdae3ee06ea8545b913ede7a18466e033b603ddf2762
https://github.com/github/gh-stack/pull/120/changes#diff-b72c23d7f5564a71582acdae3ee06ea8545b913ede7a18466e033b603ddf2762
https://github.com/github/gh-stack/pull/120/changes#diff-b72c23d7f5564a71582acdae3ee06ea8545b913ede7a18466e033b603ddf2762
Please reload this pagehttps://github.com/github/gh-stack/pull/120/changes
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.