eclipse-csi / otterdog

OtterDog is a tool to manage GitHub organizations at scale using a configuration as code approach. It is actively used by the Eclipse Foundation to manage its numerous projects hosted on GitHub.
https://otterdog.readthedocs.org
Eclipse Public License 2.0
23 stars 3 forks source link

Support creating files in a repo that follows a template #222

Open netomi opened 6 months ago

netomi commented 6 months ago

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 commented 5 months ago

@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 commented 5 months ago

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

gdams commented 5 months ago

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