use choice var instead of not yet released bool var

This commit is contained in:
Histausse 2023-03-26 17:28:37 +02:00
parent 0c830127ec
commit a5627c192d
3 changed files with 3 additions and 2 deletions

View file

@ -2,3 +2,4 @@
- tests
- add AGPL
- use bool value for `generate_gitea_project` when the feature is available

View file

@ -7,7 +7,7 @@
"project_slug": "{{ cookiecutter.project_name.lower().replace(' ', '_').replace('-', '_') }}",
"gitea_url": "https://git.mineau.eu",
"project_url": "{{ cookiecutter.gitea_url }}/{{ cookiecutter.git_user }}/{{ cookiecutter.project_slug }}",
"generate_gitea_project": true,
"generate_gitea_project": [ true, false ],
"git_origin": "{{ cookiecutter.gitea_url.replace('https://', 'gitea@').replace('http://', 'gitea') }}:{{ cookiecutter.git_user }}/{{ cookiecutter.project_slug }}.git",
"version": "0.1.0",
"open_source_license": ["GNU General Public License v3", "MIT license", "BSD license", "ISC license", "Apache Software License 2.0", "Not open source"],

View file

@ -32,7 +32,7 @@ if {{cookiecutter.generate_gitea_project}}:
my_input = input
API_KEY = my_input(
"Secret service or secret {'Title': 'Gitea Token'} not available,"
"please enter you gitea api key:"
"please enter you gitea api token:"
)
configuration = giteapy.Configuration()
configuration.api_key["access_token"] = API_KEY