René's URL Explorer Experiment


Title: remove silent prefix detection in init by skarim · Pull Request #126 · github/gh-stack · GitHub

Open Graph Title: remove silent prefix detection in init by skarim · Pull Request #126 · github/gh-stack

X Title: remove silent prefix detection in init by skarim · Pull Request #126 · github/gh-stack

Description: When explicit branch names containing slashes were passed to gh stack init (e.g. gh stack init myprefix/branch), detectPrefix was silently extracting the prefix and storing it in the stack config. This caused gh stack add otherbranch to unexpectedly produce myprefix/otherbranch without the user ever opting in. The interactive path correctly prompts for confirmation ("Use myprefix/ as a prefix?"), but the args path had no such guard. Changes cmd/init.go: remove the silent detectPrefix block from the args path — explicit branch names are taken literally. Users who want a prefix should use --prefix. cmd/init_test.go: update ArgsCommonPrefix and NestedPrefix tests to expect no prefix detection from explicit args Stack created with GitHub Stacks CLI • Give Feedback 💬

Open Graph Description: When explicit branch names containing slashes were passed to gh stack init (e.g. gh stack init myprefix/branch), detectPrefix was silently extracting the prefix and storing it in the stack config. ...

X Description: When explicit branch names containing slashes were passed to gh stack init (e.g. gh stack init myprefix/branch), detectPrefix was silently extracting the prefix and storing it in the stack config. ...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:d21afd17-1763-7c7a-42d0-2cf8a1e8494b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD266:13BA54:AF9CD92:B300CBA:6A50BDCB
html-safe-nonce62faf36149eb14ff3689de1bdd203ac572a05a94ad02f33d36c3042a435f210f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjY2OjEzQkE1NDpBRjlDRDkyOkIzMDBDQkE6NkE1MEJEQ0IiLCJ2aXNpdG9yX2lkIjoiNzUzNDMzNDgxNDcyMTE5NTQ2NyIsInJlZ2lvbl9lZGdlIjoic2VhIiwicmVnaW9uX3JlbmRlciI6InNlYSJ9
visitor-hmac2bbdeba856c2d5b72895a720ab9083cac67cc501a63ff75e205e0369a9ecc100
hovercard-subject-tagpull_request:3864935489
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/126/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:altWhen explicit branch names containing slashes were passed to gh stack init (e.g. gh stack init myprefix/branch), detectPrefix was silently extracting the prefix and storing it in the stack config. ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None72b13e0e8d0319acdd27a145cfe73f4f06c791713d0ac4690e41fb68ad28cac0
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
release08e79d53fc070870d5b168356afebb1e286a2ffe
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/gh-stack/pull/126/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgh-stack%2Fpull%2F126%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%2F126%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/126/files
Reloadhttps://github.com/github/gh-stack/pull/126/files
Reloadhttps://github.com/github/gh-stack/pull/126/files
Please reload this pagehttps://github.com/github/gh-stack/pull/126/files
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/fix-no-local-trunkhttps://github.com/github/gh-stack/tree/skarim/fix-no-local-trunk
skarim/init-rm-silent-add-prefixhttps://github.com/github/gh-stack/tree/skarim/init-rm-silent-add-prefix
Conversation 3 https://github.com/github/gh-stack/pull/126
Findings https://github.com/github/gh-stack/pull/126/findings
Commits 2 https://github.com/github/gh-stack/pull/126/commits
Checks 6 https://github.com/github/gh-stack/pull/126/checks
Files changed 2 https://github.com/github/gh-stack/pull/126/files
remove silent prefix detection in init https://github.com/github/gh-stack/pull/126/files#top
Show all changes 2 commits https://github.com/github/gh-stack/pull/126/files
1745100 Remove silent prefix detection from args path in init skarim Jun 15, 2026 https://github.com/github/gh-stack/pull/126/commits/1745100d7e32e862ab29d436ce964dc8a4f5400c
dba445f Remove dead detectPrefix function and its tests skarim Jun 15, 2026 https://github.com/github/gh-stack/pull/126/commits/dba445f64b4fcc13fbaf141564c831ee48f92677
Clear filters https://github.com/github/gh-stack/pull/126/files
Please reload this pagehttps://github.com/github/gh-stack/pull/126/files
Please reload this pagehttps://github.com/github/gh-stack/pull/126/files
init.go https://github.com/github/gh-stack/pull/126/files#diff-345cd3beb7d905a8bef99d83e99c62678bfd5101a26d30104ecc9320602072ac
init_test.go https://github.com/github/gh-stack/pull/126/files#diff-d771e0afcdec153a565dc10610eb83e9c64c011306e5176f4349fea1d8a76266
https://github.com/github/gh-stack/blob/main/CODEOWNERS#L2
cmd/init.gohttps://github.com/github/gh-stack/pull/126/files#diff-345cd3beb7d905a8bef99d83e99c62678bfd5101a26d30104ecc9320602072ac
View file https://github.com/github/gh-stack/blob/dba445f64b4fcc13fbaf141564c831ee48f92677/cmd/init.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/gh-stack/pull/126/{{ revealButtonHref }}
https://github.com/github/gh-stack/pull/126/files#diff-345cd3beb7d905a8bef99d83e99c62678bfd5101a26d30104ecc9320602072ac
Please reload this pagehttps://github.com/github/gh-stack/pull/126/files
https://github.com/github/gh-stack/pull/126/files#diff-345cd3beb7d905a8bef99d83e99c62678bfd5101a26d30104ecc9320602072ac
https://github.com/github/gh-stack/pull/126/files#diff-345cd3beb7d905a8bef99d83e99c62678bfd5101a26d30104ecc9320602072ac
https://github.com/github/gh-stack/pull/126/files#diff-345cd3beb7d905a8bef99d83e99c62678bfd5101a26d30104ecc9320602072ac
https://github.com/github/gh-stack/blob/main/CODEOWNERS#L2
cmd/init_test.gohttps://github.com/github/gh-stack/pull/126/files#diff-d771e0afcdec153a565dc10610eb83e9c64c011306e5176f4349fea1d8a76266
View file https://github.com/github/gh-stack/blob/dba445f64b4fcc13fbaf141564c831ee48f92677/cmd/init_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/gh-stack/pull/126/{{ revealButtonHref }}
https://github.com/github/gh-stack/pull/126/files#diff-d771e0afcdec153a565dc10610eb83e9c64c011306e5176f4349fea1d8a76266
https://github.com/github/gh-stack/pull/126/files#diff-d771e0afcdec153a565dc10610eb83e9c64c011306e5176f4349fea1d8a76266
https://github.com/github/gh-stack/pull/126/files#diff-d771e0afcdec153a565dc10610eb83e9c64c011306e5176f4349fea1d8a76266
https://github.com/github/gh-stack/pull/126/files#diff-d771e0afcdec153a565dc10610eb83e9c64c011306e5176f4349fea1d8a76266
https://github.com/github/gh-stack/pull/126/files#diff-d771e0afcdec153a565dc10610eb83e9c64c011306e5176f4349fea1d8a76266
https://github.com/github/gh-stack/pull/126/files#diff-d771e0afcdec153a565dc10610eb83e9c64c011306e5176f4349fea1d8a76266
https://github.com/github/gh-stack/pull/126/files#diff-d771e0afcdec153a565dc10610eb83e9c64c011306e5176f4349fea1d8a76266
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.