-
Notifications
You must be signed in to change notification settings - Fork 129
Variables for template repositories #1716
Comments
I need this badly. Is it been looked into? |
Any news? |
Another example of a great implementation of variables for templates could be Heroku: https://devcenter.heroku.com/articles/heroku-button#invoke-app-setups |
Any updates? This could be extremely helpful. |
I also think this is a must-have to make this feature really useful.
|
Need a way to:
|
I second this. I think it's important to give some (reasonably easy) way to match (update) an older project, so that's in line with a newer version of the template. At least some simple scenarios, like "one file gets updated in the template (and this is still present in the target project repository)". Since this will most likely mean conflicts, hopefully some conflict-resolution (with manual decisioning process) will be possible. |
@sustacek It would be very convenient to sync them similarly to Pull Requests, but the derivated project might become so different from the template that it will produce lots of conflicts and changed files most likely. |
@itsjavi, some process like PR would be lovely. Conflicts would be expected, this is like merging / rebasing between branches during development -- if two devs worked on the very same piece of code (lines in a file), someone has to decide what should be the end result. This can work well only for stable templates and projects not customized drastically after being created from that template. Right now, when I need to update a project, I do a directory diff between the template repo and project repo. In an actual project, I mostly add new files and don't change the existing directory structure too much, to make my (future) life easier. |
Any update on whether this would ever be implemented ? |
Came across this: https://stefanbuck.com/blog/repository-templates-meets-github-actions |
Any update on this? |
Definitely would like to see variables in use -- at the very least for things like README's and package.json's... |
it would be very useful, looking foward to it! |
Hey everyone, I am working on http://codeboard.world to solve exactly this. |
I came across this today which uses a 1-time Github Action to do some variables: https://github.com/rochacbruno/python-project-template/blob/main/.github/workflows/rename_project.yml I've also opened a discussion on the official feedback forum, please upvote there! community/community#5336 |
Now that github has template repositories, an obvious next step is to enable "variables" to make it easy to stamp out customized repositories based on a set of metadata passed in to the template.
See https://cookiecutter.readthedocs.io for an example of this in a command line tool.
The text was updated successfully, but these errors were encountered: