Skip to content

Enable the GitHub template-repository setting ("Use this template") #68

@devantler

Description

@devantler

🤖 Generated by the Daily AI Assistant

Part of the go-template roadmap #67.

Problem

The repository is named go-template, carries the template topic, and is described as "A simple Go template for new projects" — but it is not flagged as a GitHub template repository (isTemplate: false). As a result the green "Use this template" button is absent, and the only documented way to start a new project (README) is git clone + go mod init, which carries the template's git history and the devantler-tech/go-template module path into the new project.

Proposed direction

Enable the Template repository setting so the repo can be consumed the idiomatic way:

  • one click → Use this templateCreate a new repository (fresh history, no fork relationship), or
  • gh repo create <name> --template devantler-tech/go-template.

This is a single repo‑setting toggle (Settings → Template repository checkbox), or via API: gh api --method PATCH repos/devantler-tech/go-template -f is_template=true. No code change.

Note for the AI assistant: this is a repo‑config change, not a diff — surfaced to the maintainer rather than done autonomously.

Acceptance criteria

  • gh repo view devantler-tech/go-template --json isTemplate reports true.
  • The "Use this template" button is visible on the repo home page.
  • README's Getting Started mentions the Use this template / gh repo create --template flow alongside (or instead of) the manual clone steps.

Size

XS — one setting toggle, plus a couple of README lines (the README half overlaps #70).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions