TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Tell HN: Don't Link to GitHub Template Repo's /Generate URLs

2 pointsby amitualmost 2 years ago
Github allows you to mark a repository as a template repository. E.g., [1]. A template repository can be used to quickly create a repository, and used by all sorts of project starters etc. If it is a template repository they show this nice big green button, &quot;Use this template&quot;. The &quot;Use this template&quot; button is the most important button, if I send any traffic to a template repo, I want that to be the primary Call To Action on that page.<p>But this button is only visible to people who are a. logged in users and b. using desktop and c. have wide enough browser. If you are not logged in, or using mobile app, or desktop browser is not wide enough, the &quot;Use this template&quot; is hidden.<p>Github also has a URL for creating a new repo from a template action, which is linked to by the big green button (`&lt;repo-url&gt;&#x2F;generate`, e.g., [2]). You would think that it&#x27;s alright if the Github UI is not showing the button, I will just link to it from the README etc, but unfortunately Github has decided to show 404 if you are not logged in user.<p>Even if the user is logged in on Github mobile app (I have only checked it on iOS), the mobile app does not intercept this link, and takes you to your device browser, which I, and I presume many, typically leave in private browsing mode, where you may not be logged in on Github, leading to a 404 in your README.<p>It&#x27;s quite baffling series of product decisions by Github. The make it a really large green button when it shows up, so they do consider it an important action, and yet it&#x27;s given such a step button treatment everywhere.<p>[1] Example template repo: https:&#x2F;&#x2F;github.com&#x2F;fastn-stack&#x2F;fastn-template [2] Example template repo&#x27;s generate URL: https:&#x2F;&#x2F;github.com&#x2F;fastn-stack&#x2F;fastn-template&#x2F;generate

no comments

no comments