Skip to content

Cookiecutter: Supporting multiple licenses in code.json cookiecutter CLI #349

@natalialuzuriaga

Description

@natalialuzuriaga

Is your feature request related to a problem? Please describe.
In code.json, licenses is an array that contains a repository's licenses. Currently, the code.json cookiecutter CLI only adds a single license to the array.

Image

Describe the solution you'd like
We want code.json cookiecutter CLI to be able to add multiple licenses. This can be done using the post_gen_project.py script that is run after the user completes the cookiecutter.json prompts.

Describe alternatives you've considered
We could have users manually update the license field themselves but this is prone to user error.

Additional context
In the .github directory, run the code.json cookiecutter CLI:

cookiecutter . --directory=codejson

More information about code.json: https://github.com/DSACMS/gov-codejson/blob/main/docs/metadata.md
code.json CMS schema: https://github.com/DSACMS/gov-codejson/blob/main/schemas/schema-2.0.0.json

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions