Skip to content

Added new template parameters for new projects#2212

Open
mattprintz wants to merge 1 commit intopypa:masterfrom
mattprintz:master
Open

Added new template parameters for new projects#2212
mattprintz wants to merge 1 commit intopypa:masterfrom
mattprintz:master

Conversation

@mattprintz
Copy link
Copy Markdown

@mattprintz mattprintz commented Mar 22, 2026

Two updates to facilitate using hatch and hatch cli when working within an orginization rather than as a sole-developer.

  • Added "github-org" field to template section of config

    Allows control of "organization" portion of auto-generated project
    urls.

    Fetched from gh github cli command if it is installed and
    configured. Defaults to name

  • Added "copyright-holder" field to template section of config

    Overrides copyright holder wording, allowing for automatic setting
    of copyright in cases when the creator is working for an
    organization.

    Defaults to previous value ('{name} <{email}>') if not set.

  • Updated tests to reflect change.

  • Added new tests to cover new template params and default values.

Two updates to facilitate using hatch and hatch cli when working within
an orginization rather than as a sole-developer.

* Added "github-org" field to template section of config

    Allows control of "organization" portion of auto-generated project
    urls.

    Fetched from `gh` github cli command if it is installed and
    configured. Defaults to name

* Added "copyright-holder" field to template section of config

    Overrides copyright holder wording, allowing for automatic setting
    of copyright in cases when the creator is working for an
    organization.

    Defaults to previous value ('{name} <{email}>') if not set.

* Updated tests to reflect change.

* Added new tests to cover new template params and default values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant