otterdog icon indicating copy to clipboard operation
otterdog copied to clipboard

Support creating files in a repo that follows a template

Open netomi opened this issue 1 year ago • 3 comments

Some user request:

it would be nice to support creating files from templates in all repos, e.g. CODE_OF_CONDUCT.md or workflow files that should be present in all repos with slight changes.

netomi avatar Apr 04 '24 13:04 netomi

@gdams can you give some example what type of file you have in mind for such a template and how such a template would look like?

Are you familiar with jinja? Would it be acceptable to use jinja templates for that and what type of variable would be useful or needed? We could inject information about the project as variables, e.g. project name, github organization, repo name.

netomi avatar Apr 25 '24 20:04 netomi

Here is one example of such a jinja template that we already use: https://github.com/EclipseFdn/.eclipsefdn-template/blob/main/.github/CODEOWNERS

netomi avatar Apr 25 '24 20:04 netomi

Yeah I was thinking of things like CONTRIBUTING.md and certain github workflows that we want to ensure are present in specific repos

gdams avatar Apr 25 '24 20:04 gdams

implemented by blueprints with type required_file

netomi avatar Nov 14 '24 21:11 netomi