Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template files/directories with customisable names #14273

Closed
clarfonthey opened this issue Jan 7, 2021 · 4 comments
Closed

Template files/directories with customisable names #14273

clarfonthey opened this issue Jan 7, 2021 · 4 comments
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@clarfonthey
Copy link
Contributor

Description

Right now, template variables are only expanded within file contents. It would be nice to be able to also expand them inside file names. One potential use case for this is to create a $REPO_NAME directory for storing a template Python module with the same name as the repository.

One potential issue with directly allowing variables in file names is that this could potentially induce non-determinant behaviour depending on the order in which the files are renamed. We could simply error if renaming a file results in overwriting another file, however.

@clarfonthey clarfonthey changed the title Template files/directories with customisable naems Template files/directories with customisable names Jan 7, 2021
@noerw noerw added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Jan 7, 2021
@jolheiser jolheiser mentioned this issue Jan 13, 2021
15 tasks
@bilderbuchi
Copy link

This would indeed be a very useful feature, cookiecutter can also do that, and is probably the reference solution for Python project templates.

@ddi-acassidy
Copy link

An alternate route could be a gitea actions trigger for when a template is uses. That would allow for completely customizable behavior when using templates

@bilderbuchi
Copy link

bilderbuchi commented Feb 7, 2024

I think #25294 added this to Gitea 1.21.0, so it seems this can be closed now.

Copy link

Automatically locked because of our CONTRIBUTING guidelines

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

5 participants